Code polish
This commit is contained in:
parent
124ef3d42c
commit
8be291608d
@ -101,8 +101,6 @@ class Server<C extends Connection> extends EndPointServer<C> {
|
|||||||
// you have to make sure to use this.serialization
|
// you have to make sure to use this.serialization
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
Logger logger2 = logger;
|
|
||||||
|
|
||||||
tcpPort = options.tcpPort;
|
tcpPort = options.tcpPort;
|
||||||
udpPort = options.udpPort;
|
udpPort = options.udpPort;
|
||||||
|
|
||||||
@ -227,7 +225,6 @@ class Server<C extends Connection> extends EndPointServer<C> {
|
|||||||
|
|
||||||
|
|
||||||
if (udpBootstrap != null) {
|
if (udpBootstrap != null) {
|
||||||
|
|
||||||
if (OS.isAndroid()) {
|
if (OS.isAndroid()) {
|
||||||
// android ONLY supports OIO (not NIO)
|
// android ONLY supports OIO (not NIO)
|
||||||
udpBootstrap.channel(OioDatagramChannel.class);
|
udpBootstrap.channel(OioDatagramChannel.class);
|
||||||
|
@ -84,9 +84,9 @@ class EndPoint<C extends Connection> {
|
|||||||
* The HIGH and LOW watermark points for connections
|
* The HIGH and LOW watermark points for connections
|
||||||
*/
|
*/
|
||||||
@Property
|
@Property
|
||||||
protected static final int WRITE_BUFF_HIGH = 32 * 1024;
|
public static final int WRITE_BUFF_HIGH = 32 * 1024;
|
||||||
@Property
|
@Property
|
||||||
protected static final int WRITE_BUFF_LOW = 8 * 1024;
|
public static final int WRITE_BUFF_LOW = 8 * 1024;
|
||||||
|
|
||||||
public static final String THREADGROUP_NAME = "(Netty)";
|
public static final String THREADGROUP_NAME = "(Netty)";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user