This commit is contained in:
wentch
2015-12-21 13:03:09 +08:00
parent 65af6e16a9
commit 754974b85f
4 changed files with 5 additions and 6 deletions

View File

@@ -42,6 +42,8 @@ public final class SocksServer extends Server {
@Override
@SuppressWarnings("unchecked")
protected Context createContext() {
if (this.readTimeoutSecond < 1) this.readTimeoutSecond = 6;
if (this.writeTimeoutSecond < 1) this.writeTimeoutSecond = 6;
final int port = this.address.getPort();
AtomicLong createBufferCounter = watch == null ? new AtomicLong() : watch.createWatchNumber("SOCKS_" + port + ".Buffer.creatCounter");
AtomicLong cycleBufferCounter = watch == null ? new AtomicLong() : watch.createWatchNumber("SOCKS_" + port + ".Buffer.cycleCounter");