Hello all,
        I am somewhat new to java, and I am having a problem with a server app that I w
rote.  
What is happening is that for each connection to the server, it returns a Socket and co
ntinues the conversation.  This is fine.  The socket does some simple tasks and then I 
close it.  That is the problem.  Under heavy load - each new thread has gets the Socket
 passed to its run method.  What happens is that the ports on the box become used up.  
netstat -t shows tons of ports with TIME_WAIT , waiting to shut down.  Now this shutdow
n is not happening fast enough, and as more requests come in, more ports are unuseable 
until the box will not accept any more connections.

How does one get the ServerSocket to re-use ports instead of opening new ones?


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to