Operating System - Linux
1828354 Members
3005 Online
109976 Solutions
New Discussion

Re: problem with CLOSE_WAIT

 
Alpha977
Valued Contributor

problem with CLOSE_WAIT

Hello all!

I have a problem with TCP connection.

I use Tomcat for run an application, but when i close the browser and run "netstat" on the server i see most CLOSE_WAIT connections!

How i can configure the timeout for the CLOSE_WAIT connections?

The o.s. is Red Hat AS.

Thanks to all!
2 REPLIES 2
Alpha977
Valued Contributor

Re: problem with CLOSE_WAIT

echo 1 > /proc/sys/net/ipv4/tcp_fin_timeout

Thanks!
rick jones
Honored Contributor

Re: problem with CLOSE_WAIT

Apache and/or Tomcat, upon receiving the read return of zero indicating a FIN from the client(s) _should_ have called close() against their socket. That should have taken-care of the CLOSE_WAIT stuff.

Stack timeout settings would be a kludge treating a symptom.
there is no rest for the wicked yet the virtuous have no pillows