Skip to content

Commit 4c047cb

Browse files
mint-runsmint-runs
authored andcommitted
update Client.java
1 parent 0748501 commit 4c047cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/javasocketapi/core/Client.java

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

0 commit comments

Comments
 (0)