how frequently does the letter c appear in:
q: can i make tcp/ip session to run less than 60 seconds? our server is overloaded with tcp/ip sessions, we have 1200 - 1500 of them.
most of them are hanging in time_out state.
it turns out that a connection in time_out state occupies a socket until 60 second time-out is elapsed.
the problem is that the server gets unresponsive and many clients are not getting served.
i have made a simple test: download an xml file from the server with internet explorer 8.0
the download finishes in a fraction of second.
but then i see that the tcp/ip connection is hanging in time_out state for 60 seconds.
is there any way to get rid of time_out waiting or make it less to free the socket for new connections?
i understand why tcp/ip connection enters time_out state, but i dont understand why internet explorer 
does not close the connection after the xml file download is over.
the details.
our server runs web service written in perl (mod-perl).
the service provides weather data to clients.
client is a flash appication (actually flash activex control embedded in windows application).
os: ubuntu
apache keep alive option is set to 0

a: this is a setting in your tcp stack.  since we dont know what platform youre on we cant say exactly what its called and how to change it.
update
so youre using ubuntu.  you can use sysctl to reduce the net.inet.tcp.msl value to half the desired time_wait duration (in milliseconds -- see man -s 4 tcp), e.g. sysctl  net.inet.tcp.msl=2500.  beware of the implications of doing so with respect to wandering packets that may arrive after the time_wait period elapses.

a: i assume you mean time_wait. the peer that initiates the active close is the one that enters time_wait (see state transition diagram here) so if you can have your client close the connection then youll move the time_wait off to the client. see this answer for more details and a link to a good article about time_wait problems and how to solve them.
another alternative, if you cant have the client issue the active close, is to reset the connection by setting linger to false before closing it. this causes an rst to be sent rather than fin.  

a: the server being unresponsive likely has nothing to do with the number of connections in time_wait state. its not clear what you mean by occupies a socket -- the server should long since has closed the socket at that point. the system should be able to handle tens of thousands of connections in time_wait state.

user
In the text, there are 82 "c"s.
assistant