The code to close comet connections has changed over the years and this
bit no longer does anything.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1177784 13f79535-47bb-0310-9956-
ffa450edef68
comet = false;
cometClose = true;
- SelectionKey key = socket.getSocket().getIOChannel().keyFor(socket.getSocket().getPoller().getSelector());
- if ( key != null ) {
- NioEndpoint.KeyAttachment attach = (NioEndpoint.KeyAttachment) key.attachment();
- if ( attach!=null && attach.getComet()) {
- //if this is a comet connection
- //then execute the connection closure at the next selector loop
- //request.getAttributes().remove("org.apache.tomcat.comet.timeout");
- //attach.setTimeout(5000); //force a cleanup in 5 seconds
- //attach.setError(true); //this has caused concurrency errors
- }
- }
try {
outputBuffer.endRequest();