Skip to content

Commit 2f5acfc

Browse files
committed
updated Client.java to use tcpNoDelay
1 parent 3322204 commit 2f5acfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/de/javasocketapi/core/Client.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public void connect() throws IOException {
3939
if (socket == null) {
4040
//initialise socket
4141
this.socket = new Socket(this.hostname, this.port);
42+
this.socket.setTcpNoDelay(true);
4243
}
4344
//start reading and writing
4445
this.inputStreamThread = new InputStreamThread(this);

0 commit comments

Comments
 (0)