2014-04-24 17:14 GMT+04:00 Rémy Maucherat <r...@apache.org>: > 2014-04-24 15:04 GMT+02:00 Konstantin Kolinko <knst.koli...@gmail.com>: > >> 2. AbstractEndpoint,unlockAccept() >> >> s.setSoLinger(getSocketProperties().getSoLingerOn(),getSocketProperties().getSoLingerTime()); >> >> I expect the above call to be broken because of NPE. >> > > I don't see the NPE, but that would explain the accept exception I was > getting since the accept would still be going on. > >> >> 3. It seems that APR connector is broken. >> Firefox fails to connect to http;//localhost:8080/ >> >> I am pretty sure it was not a mistake to disable linger, hence the -1 that > was set. Linger would likely be harmful for a web server (sockets staying > around for some time after being closed = sounds like a big resources > drain).
AprEndpoint.setSocketOptions() contains if (socketProperties.getSoLingerOn() && socketProperties.getSoLingerTime() >= 0) Socket.optSet(socket, Socket.APR_SO_LINGER, socketProperties.getSoLingerTime()); which results in NPE and thus causes the socket to be closed. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org