No connection could be made because the target machine actively refuse it

  • Thread starter Thread starter Murad BASDAG
  • Start date Start date
M

Murad BASDAG

Guest
I have an network socket application (Client-Server application). Sometimes my client application having trouble to connect to server and throwing a SockectExeption with the "No connection could be made because the target machine actively refuse it" message. This situation continuing for a while like this (for example 10 min) and eventually it can connect to the server successfully. In the server side I don't have a fail safe mechanizm to restart listening for the port. And there is no any accept connection call in the application level. I'm thinking that in the socket level for a reason OS stopping to accept clients and recovering it by it self.

I need help to find out what is the problem and how to resolve it.

Note: It's a huge application and there is a possibility to a huge data transfers between clients and server. When the socket cache is full is it possible to cause this kind of problems?

Continue reading...
 
Back
Top