[jboss-dev-forums] [Design of JBoss/Tomcat Integration] - Re: Stopping connectors early in the shutdown process

bstansberry@jboss.com do-not-reply at jboss.com
Fri Sep 28 13:26:24 EDT 2007


Either don't call Connector.stop() twice (needs new API to know if started), or reduce the logging level on the message it emits if stop() is called if already stopped.

>From looking at the how the various TC protocols work, I don't see how calling Connector.stop() will prevent keepalive requests on existing sockets either.  Both pause() and stop() deal with accepting sockets off the server socket and handing them off to be handled; AFAICT they don't impact what happens with existing connections. 

pause() -- pause the thread the accepts sockets off the server socket. Not good for shutdown as it basically means connection requests will pile up on the socket rather than promptly failing over.

stop() -- pause() plus close the server socket.

This for sure needs Remy's input.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089800#4089800

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089800



More information about the jboss-dev-forums mailing list