2011/5/16 Dan Checkoway <dchecko...@gmail.com>: > I wanted to express my thanks for the heads-up on bindOnInit as well. I had > overlooked that in the connector config doc. > > Just curious...is there any down side to setting bindOnInit="false"? > > To be honest, tomcat's default behavior of accepting a connection before > being able to serve it (i.e. while webapps are still initializing) has > always been something I found questionable, since the connected client just > sits and waits. So I'm glad you turned me onto this workaround, but I just > want to be aware of any penalties if there are any...?
1) If you start Tomcat with jsvc it can init the connectors and bind to ports (e.g. port 80) and drop privileges after that. That is the primary reason why bindOnInit="true" option is there. 2) If you open a port earlier the OS starts accepting connections earlier. The connector will serve them after it actually starts. If the port is not open a connection attempt will be refused immediately. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org