Errno: 11, Resource Temporarily Unavailable

后端 未结 2 708
时光说笑
时光说笑 2021-02-05 14:36

I am using c sockets to implement a reliable UDP protocol. I am using the following code to set a timeout on a socket in which I\'m waiting for an acknowledgement. I am not su

2条回答
  •  误落风尘
    2021-02-05 14:41

    For me, the problem was due to ipV6 packets arriving on a UDP socket bound to a particular port. These were triggering the select() but when I tried to read them using recvfrom() the call returned "Resource temporarily unavailable". I don't need IPV6 for my application so I simply disabled it via sysctl.conf. Problem now gone away!

提交回复
热议问题