Remy Maucherat wrote:
Filip Hanik - Dev Lists wrote:
1. Proposal one - per socket timeout ability for comet requests

I was thinking of enhancing the Comet servlet with the ability to add a per-socket-timeout, so that Comet requests don't have to be tuned under the regular <Connector> timeout specified in server.xml

public void setTimeout(HttpServletRequest request, HttpServletResponse response, long timeout) throws IOException, ServletException { request.setAttribute("org.apache.tomcat.comet.timeout", new Long(timeout));
}

For the NIO connector, I can hold this value in the key attachment, for the APR, we could maintain a parallel array to the array with the socket decriptors that contains the timeout for the respective socket, or similar method.

let me know what you think, Remy would you like to do this on the APR side?

No, I do not wish to have that capability in APR.

This is a bit ambiguous: you can add the method if you want, but it would clearly be described as best effort in the javadoc (and APR would probably not implement it, since it adds complexity, and it's more a cool gadget than something actually useful).

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to