This commit is contained in:
@@ -207,10 +207,10 @@ public abstract class AsyncConnection implements ReadableByteChannel, WritableBy
|
|||||||
}
|
}
|
||||||
if (this.readBuffer != null) {
|
if (this.readBuffer != null) {
|
||||||
Consumer<ByteBuffer> consumer = this.bufferConsumer;
|
Consumer<ByteBuffer> consumer = this.bufferConsumer;
|
||||||
Thread thread = Thread.currentThread();
|
// Thread thread = Thread.currentThread();
|
||||||
if (thread instanceof IOThread) {
|
// if (thread instanceof IOThread) {
|
||||||
consumer = ((IOThread) thread).getBufferPool();
|
// consumer = ((IOThread) thread).getBufferPool();
|
||||||
}
|
// }
|
||||||
consumer.accept(this.readBuffer);
|
consumer.accept(this.readBuffer);
|
||||||
}
|
}
|
||||||
if (attributes == null) return;
|
if (attributes == null) return;
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ public class TcpAioProtocolServer extends ProtocolServer {
|
|||||||
|
|
||||||
AsyncConnection conn = new TcpAioAsyncConnection(bufferPool, bufferPool, channel,
|
AsyncConnection conn = new TcpAioAsyncConnection(bufferPool, bufferPool, channel,
|
||||||
context.getSSLContext(), null, context.readTimeoutSeconds, context.writeTimeoutSeconds, livingCounter, closedCounter);
|
context.getSSLContext(), null, context.readTimeoutSeconds, context.writeTimeoutSeconds, livingCounter, closedCounter);
|
||||||
context.runAsync(new PrepareRunner(context, responsePool, conn, null, null));
|
//context.runAsync(new PrepareRunner(context, responsePool, conn, null, null));
|
||||||
|
new PrepareRunner(context, responsePool, conn, null, null).run();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
context.logger.log(Level.INFO, channel + " accept error", e);
|
context.logger.log(Level.INFO, channel + " accept error", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user