We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0748501 commit 4c047cbCopy full SHA for 4c047cb
src/main/java/de/javasocketapi/core/Client.java
@@ -39,7 +39,7 @@ public void connect() throws IOException {
39
if (this.socket == null) {
40
//initialise socket
41
this.socket = new Socket(this.hostname, this.port);
42
- this.socket.setPerformancePreferences(1, 0, 0);
+ this.socket.setKeepAlive(true);
43
}
44
//start reading and writing
45
this.inputStreamThread = new InputStreamThread(this);
0 commit comments