Skip to content

Commit

Permalink
Try even harder to not drop Bungee connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Oct 1, 2016
1 parent 0f4ac84 commit 0585add
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -70,8 +70,9 @@ public void connect() {
if (!isConnected) {
try {
this.socket = new Socket();
this.socket.connect(new InetSocketAddress(this.ipAddress, this.port), timeout);
this.socket.setSoTimeout(timeout);
this.socket.setKeepAlive(true);
this.socket.connect(new InetSocketAddress(this.ipAddress, this.port), timeout);
this.output = new DataOutputStream(this.socket.getOutputStream());
this.input = new DataInputStream(this.socket.getInputStream());
this.isConnected = true;
Expand Down

0 comments on commit 0585add

Please sign in to comment.