Skip to content

Commit

Permalink
Fix tcp no delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Hafner committed Jul 9, 2024
1 parent 34908e7 commit 03b0f86
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.EOFException;
import java.io.IOException;
import java.net.StandardSocketOptions;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import org.polypheny.db.catalog.exceptions.GenericRuntimeException;
Expand Down Expand Up @@ -43,6 +44,7 @@ public void close() {

public static Transport accept(SocketChannel con) {
try {
con.setOption( StandardSocketOptions.TCP_NODELAY, true );
return new PlainTransport(con);
} catch (IOException e) {
Util.closeNoThrow(con);
Expand Down

0 comments on commit 03b0f86

Please sign in to comment.