In a TCP connection, the most important is the connection of the TCP connection, the state between the two directions and the relationship between each system call and the state. Can often be expressed in two graphs, the first is the state
1. Background:In front of the listen backlog to the full connection and the impact of semi-connection, this article will be from the kernel source (kernel 2.6.32) Simple understanding of the service side of the three-time handshake and the backlog
After some hard work, I will summarize it.ListenParametersBacklog.
PS: server environment:Ubuntu12.04. Client does not matter: IMac OS X 10.7.
Let's take a look at $ man listen, which contains a passage:
If the backlog argument is greater than
Original how TCP backlog works in LinuxThe level is limited, inevitably mistake, welcome to point out!The following are translations:When an application listen a socket (socket) to the listen state through a system call, a backlog parameter is
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
What is socket
A socket interface is an API of a TCP/IP network. A socket interface defines many functions or routines. programmers can use it to develop applications on a TCP/IP network. To learn TCP/IP network programming on the internet, you
Speaking of the backlog, you will remember the listen backlog parameter in socket programming, which is the backlog that is processed in the Linux kernel?int listen (int sockfd, int backlog)Mans ListenYou can see an explanation about listen. THE
To understand the backlog argument, we must realize, a given listening socket, the kernel maintains the queues:To understand the meaning of the backlog parameter, we must understand that for a listening socket,kernel maintainer two queues:1.An
Windows Socket API usage experienceThis article is some of my experiences in MS-windows and HP-UNIX network programming. It is for your reference only. If the socket function mentioned in this article is not specifically described, it refers to the
What is the SocketSocket interface is the TCP/IP network API, the Socket interface defines many functions or routines, programmers can use them
What is SocketA Socket interface is an API of a TCP/IP network. a Socket interface defines many functions
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.