The meaning of the backlog in the socket listen parameter!

Source: Internet
Author: User
when the server listens, it takes a certain amount of time to process a client's connection each time, which is very short (perhaps only 1ms or less), but this time still exists. The meaning of this backlog is that while the first connection request is being processed during this time, other connection requests are waiting in the request queue, and if the queue's maximum number of waits is exceeded, the other requests are ignored or will not be processed. the value of this backlog is the size of the queue that is affected. However, the backlog value is not directly equal to the number of queues, the actual size of the queue varies depending on the operating system. There may be some of this value, there are 2 * backlog + 1, or other formulas and so on. Personal Understanding, for reference only!

The meaning of the backlog in the socket listen parameter!

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.