Skip to content

Commit

Permalink
fix: Fixes the octo receive buffer size. (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Jul 30, 2019
1 parent b4f51cd commit 838e190
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/org/jitsi/videobridge/octo/OctoRelay.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@ public OctoRelay(String address, int port)
". Receive buffer size " + s.getReceiveBufferSize() +
" (asked for " + SO_RCVBUF + ").");

socket = new MultiplexingDatagramSocket(s, true /* persistent */);
socket = new MultiplexingDatagramSocket(s, true /* persistent */)
{
@Override
public void setReceiveBufferSize(int size)
{
// We want to keep the buffer size to the one we set above.
}
};
this.port = port;
String id = address + ":" + port;
setRelayId(id);
Expand Down

0 comments on commit 838e190

Please sign in to comment.