“An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full”

前端 未结 8 863
情话喂你
情话喂你 2020-12-03 02:55

I\'ve written an IP multicasting application in C#. It compiles fine, but at runtime this line:

sock.SetSocketOption(SocketOptionLevel.IP,
                          


        
8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 03:30

    It could be port exhaustion. When application(s) makes too many outgoing connections in short time frame or does not dispose outgoing connections properly - you run out of ports.

    Here is the link to rather lengthy explanation and a way to diagnose the issue

提交回复
热议问题