set TCP_NODELAY on transport socket
This commit is contained in:
parent
8bc0852799
commit
e98c4c7cd4
1 changed files with 2 additions and 1 deletions
|
|
@ -292,7 +292,8 @@
|
|||
the socket is connected."
|
||||
^Socket
|
||||
[^String hostname ^Integer port]
|
||||
(Socket. hostname port))
|
||||
(doto (Socket. hostname port)
|
||||
(.setTcpNoDelay true)))
|
||||
|
||||
(defn close-socket
|
||||
"Close the socket, and also closes its input and output streams."
|
||||
|
|
|
|||
Loading…
Reference in a new issue