Hi to all,

I made a little http/web server with Synapse and FPC 2.2.4. It listens on  
a designed port (8080 for instance) and start threads for all incoming  
connections.

My trouble is that on Linux each connection remains "open" (seen with  
netstat -ta) for about 1 minute, and when I test the server with many  
connections, the number of ports available runs out and the systems stalls  
for a moment - until some connections are closed (or reach some timeout).

I was very careful on the programming to close all connections on the end  
of each thread, but the SO keep them open.

There is any parameter on opening the socket to fix that behavior? Is it a  
SO problem?

Any contribution is welcome.

Nelson

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to