Socket resource temporarily unavailable, errno code is 11

Source: Internet
Author: User
Socket resource temporarily unavailable, errno code is 11 (eagain)

Previous/next article 10:32:42/personal classification: c

View (2026)/comment (0)/score (0/0) on LinuxNon-blocking SocketReceive DataResource temporarily unavailable often occurs, errno code is 11 (eagain), what does this mean?

This indicates that you have called the blocking operation in non-blocking mode. If the operation is not completed, this error is returned. This error will not damage the synchronization of the socket, the next cycle is followed by Recv. For a non-blocking socket, eagain is not an error. In VxWorks andWindowsThe name of eagain is ewouldblock.

In addition, if eintr is returned, that is, errno is 4, and the error description is interrupted system call, the Operation should continue.

Finally, if the returned value of Recv is 0, it indicates that the connection has been disconnected and our receiving operation should also end.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.