tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <>
Subject Purpose of unlockAccept
Date Mon, 07 May 2012 16:24:24 GMT

Did some testing and removing unlockAccept works equally
fine (and in some circumstances pause/continue and even shutdown is much faster).
Using a simple socket close on stop/destroy and monitoring
for pause 'after' acceptSocket() by not handling single
connection received after pause eliminates the need for
unlockAccept entirely.
It also fixes various issues with disappearing network
stack, link-local addresses, and various hang-outs on

Any objections that I commit that to trunk?
AFAICT this is not covered by any spec and the only
change is that a single connection that could get accepted
during pause phase can receive ECONNRESET instead ECONNREFUSED
in case pause continues beyond client socket timeout.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message