You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/06/23 01:25:44 UTC
svn commit: r1138680 -
/tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java
Author: markt
Date: Wed Jun 22 23:25:43 2011
New Revision: 1138680
URL: http://svn.apache.org/viewvc?rev=1138680&view=rev
Log:
Connector refactoring
Another small step towards SocketWrapper for NIO
Modified:
tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java
Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java?rev=1138680&r1=1138679&r2=1138680&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java Wed Jun 22 23:25:43 2011
@@ -172,8 +172,7 @@ public class AjpNioProtocol extends Abst
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 Abst
// 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org