set TCP_NODELAY on transport socket

This commit is contained in:
Crispin Wellington 2022-09-12 10:39:26 +08:00
parent 8bc0852799
commit e98c4c7cd4

View file

@ -292,7 +292,8 @@
the socket is connected." the socket is connected."
^Socket ^Socket
[^String hostname ^Integer port] [^String hostname ^Integer port]
(Socket. hostname port)) (doto (Socket. hostname port)
(.setTcpNoDelay true)))
(defn close-socket (defn close-socket
"Close the socket, and also closes its input and output streams." "Close the socket, and also closes its input and output streams."