C # All Go Down Sockets

I'm trying to figure out what can cause all sockets for a given application to go down / close and not open again.

My application has several sockets (http, ftp, etc.) and will work for some time, although at some point (somewhat deterministic) all sockets will drop (I see this through ProcMon).

I get a terrible exception Exception: An established connection was aborted by the software in your host machine. Then, if I try to open the socket (s) again, I get an error message that WSAStartupmight not be called.

What are some of the tools or methods that I can use to debug such a problem?

+4
source share
1

, .

, . WSAStartup WSACleanup . WSACleanup , all (. MSDN).

WSACleanup Windows .

startup (++), , > 0. .

, .

0

Source: https://habr.com/ru/post/1531082/


All Articles