[lkml]   [2001]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectETIMEDOUT for connect() to local machine?
This is with stock 2.2.19.

We are having a strange problem. We run complex builds and tests
under Xvfb (a virtual X server) to avoid cluttering a real screen with
windows. On two of our systems, a call to XOpenDisplay() occasionally
fails with Xlib printing this message to stderr:

_X11TransSocketINETConnect: Can't connect: errno = 110

As you might guess, Xlib prints this message when its call to
connect() returns -1.

What makes this so strange is that errno 110 is ETIMEDOUT. But these
connection attempts are to a socket on the *local* machine. I am
certain about this because we include the DISPLAY in the debugging

It strikes me as odd for a connect() to the local machine to time out,
as opposed to being simply refused (errno 111).

I figured perhaps the machine was being flooded with connections,
exceeding the SYN backlog. So I enabled SYN cookies on both of the
offending systems and watched the syslog. But SYN cookies are never
being sent, even when this problem bites us, so I do not think that is
the problem.

Maybe we have bad hardware? I doubt that, since this is happening on
two systems, both of which have otherwise been completely reliable.
The two systems also happen to be the only Dell PowerEdge 2550s
(ServerWorks HE chipset) in our pool of thirty or so machines. So if
it is a hardware problem, it occurs in a whole line of systems.

It seems plausible to me that this is a subtle timing-related kernel

Anyway, I have two questions.

1) When SYN cookies are enabled, how could a connect() to a local IP
address ever result in ETIMEDOUT? Is there anything that
usermode programs could do to make this happen, or is it
definitely a problem with the kernel and/or the hardware?

2) What might I do to debug this further? The problem is hard to
reproduce, but it does hit our automated builds about once a

Thanks in advance for any ideas.

- Pat
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.041 / U:1.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site