From: markt Date: Wed, 22 Jun 2011 23:25:43 +0000 (+0000) Subject: Connector refactoring X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f081aaf66253b8dda273b7b5d33467dc48c72f6a;p=tomcat7.0 Connector refactoring Another small step towards SocketWrapper for NIO git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1138680 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/ajp/AjpNioProtocol.java b/java/org/apache/coyote/ajp/AjpNioProtocol.java index 7396517ae..6aadcebc2 100644 --- a/java/org/apache/coyote/ajp/AjpNioProtocol.java +++ b/java/org/apache/coyote/ajp/AjpNioProtocol.java @@ -172,8 +172,7 @@ public class AjpNioProtocol extends AbstractAjpProtocol { NioChannel socket = socketWrapper.getSocket(); AjpNioProcessor processor = connections.remove(socket); - NioEndpoint.KeyAttachment att = (NioEndpoint.KeyAttachment)socket.getAttachment(false); - att.setAsync(false); //no longer check for timeout + socketWrapper.setAsync(false); //no longer check for timeout try { if (processor == null) { @@ -201,7 +200,7 @@ public class AjpNioProtocol extends AbstractAjpProtocol { // socket associated with the processor. connections.put(socket, processor); - att.setAsync(true); + socketWrapper.setAsync(true); } else if (state == SocketState.OPEN){ // In keep-alive but between requests. OK to recycle // processor. Continue to poll for the next request.