Analysis of the backlog of connection queues for Linux sockets

Source: Internet
Author: User
Tags ack
The process of establishing a socket connection 1:client send a SYN request to Server2:server after receiving the request placed in the SYN queue, the maximum value of this half-connection queue is the system parameters Tcp_max_syn_ Backlog definition 3: stored in a semi-connected queue after sending Syn+ack to Client4:client received before sending Syn+ack to the server to complete three handshake, and then server put the connection in the Accept queue, This queue length is defined as the backlog definition size 5 when calling the socket in the program: The application gets a connection by calling accept () to accpetqueue but what happens when the Accpet queue is full? Note: If the Accpet queue is full, Linux will have an exception handling, to determine whether the Tcp_abort_on_overflow system parameter is 1, if it is 1, will be issued to deny the client's termination message and disconnect. But if this parameter is 0, then the pit father, for the overflow queue connection, Linux will not go to it, will continue to establish a normal connection, but in the Accpetqueue no

Analysis of the backlog of connection queues for Linux sockets

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.