Score:0

Is my process not accepting TCP connection fast enough?

md flag

I have a process P that listens for incoming TCP connections on one port. I am observing that sometimes clients have to issue several SYN to get a SYN-ACK back and then the processing of their connection. I think the process P is not able to handle more than a dozen of incoming parallel connections per second.

Is this delay and retry coming from my process P that is not accepting new TCP connection fast enough ? How could I confirm this ?

Score:0
ro flag

The initial handshake is completed by the kernel. The connection is then put in a backlog queue until your process accept() it. You can find more information on the monitoring of this queue size in this related question: https://unix.stackexchange.com/questions/328746/how-can-i-monitor-the-length-of-the-accept-queue

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.