set TCP_NODELAY on transport socket (#55)
This commit is contained in:
parent
8bc0852799
commit
53f79da09d
1 changed files with 2 additions and 1 deletions
|
|
@ -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."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue