Merge pull request #112 from jitsi/so-rcvbuf-public

ref: Makes the single port recv buffer sysprop public.
This commit is contained in:
bgrozev 2017-04-20 10:31:47 -05:00 committed by GitHub
commit dffdf0cbc8

View File

@ -43,6 +43,14 @@ import java.util.logging.Logger;
*/ */
public abstract class AbstractUdpListener public abstract class AbstractUdpListener
{ {
/**
* The name of the property which controls the size of the receive buffer
* which {@link SinglePortUdpHarvester} will request for the sockets that
* it creates.
*/
public static final String SO_RCVBUF_PNAME
= AbstractUdpListener.class.getName() + ".SO_RCVBUF";
/** /**
* Our class logger. * Our class logger.
*/ */
@ -64,14 +72,6 @@ public abstract class AbstractUdpListener
*/ */
private static final int POOL_SIZE = 256; private static final int POOL_SIZE = 256;
/**
* The name of the property which controls the size of the receive buffer
* which {@link SinglePortUdpHarvester} will request for the sockets that
* it creates.
*/
private static final String SO_RCVBUF_PNAME
= AbstractUdpListener.class.getName() + ".SO_RCVBUF";
/** /**
* Returns the list of {@link TransportAddress}es, one for each allowed IP * Returns the list of {@link TransportAddress}es, one for each allowed IP
* address found on each allowed network interface, with the given port. * address found on each allowed network interface, with the given port.