tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolter, Johannes - ENCOWAY" <>
Date Wed, 09 May 2007 13:38:18 GMT


at my company we developed our own servlet-engine/server and experienced
problems, when content was sent through a VPN tunnel. The problem seemed
to be, that on slow networks TCP-connections were cancelled (RST,ACK),
that means not all content written to the socket was sent to the client,
even when we triggered a graceful disconnect (LINGER.l_onoff  == 0 see
<> )


We solved the problem by setting linger:

Socket.setSoLinger(100) (Java code)


We do not understand why this is necessary, but finally saw, that tomcat
seems to do the same thing. Maybe someone can tell my, why tomcat is
setting SO_LINGER? I found a post from 2002 but it doesn't really
explain, _why_ setSoLinger(100) is necessary.


Thanks for any hint,

Johannes Wolter



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message