set TCP_NODELAY on transport socket (#55)

This commit is contained in:
Crispin Wellington 2022-09-12 18:43:15 +08:00 committed by GitHub
parent 8bc0852799
commit 53f79da09d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."