lkml.org 
[lkml]   [2005]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: surprisingly slow accept/connect cycle time
On Tue, May 24, 2005 at 02:54:05PM -0600, Clifford T. Matthews wrote:

> static void
> listen_or_die (int fd, int backlog)
> {
> DIE_IF (listen (fd, backlog) != 0);
>
> }

[...]

> listen_or_die (accept_fd, 10);

the backlog is 10, so my guess is that the parent does 10+ connection
attempts before the child can accept them so some SYN packets get
dropped --- and you have to wait for TCP to retry hence the delay you
see

a larger backlog would make things seem to go faster, as would
tweaking the TCP timers

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-25 05:49    [W:0.035 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site