views:

37

answers:

0

Hi I have a TCP server application which is listening for incoming connections. after establishing the connection and some send/receive operations i want to close the connection by the server. for the first time server successfully close the connection but the client cant make another connection, or it halts. but if I close the connection on the client the program works normally and multiple requests can be made. TCP Server is developed with the code in the following address and client needs to open synchronous connection to server for send/receive operation

http://ravidotnet.wordpress.com/2009/03/10/socket-performance-enhancements-in-version-35/

How can I close the connection from server side or how can i managed the opened connection on server side to release unwanted resources ?