delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/07/29/17:27:53

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Message-ID: <00f901c23747$168054f0$6132bc3e@BABEL>
From: "Conrad Scott" <Conrad DOT Scott AT dsl DOT pipex DOT com>
To: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Cc: <cygwin-developers AT cygwin DOT com>
References: <010901c23724$96e5d430$6132bc3e AT BABEL> <3D4581E4 DOT BB580995 AT ieee DOT org> <005801c23730$02304170$6132bc3e AT BABEL> <3D459257 DOT 240C79DC AT ieee DOT org> <009c01c23736$4a61a4b0$6132bc3e AT BABEL> <3D459CEC DOT 35B29D99 AT ieee DOT org>
Subject: Re: TCP problems
Date: Mon, 29 Jul 2002 22:29:57 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

"Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org> wrote:
> On my Win98 the exim mail server accepts hundreds of connections
> (over hours, days and weeks) without problems....
> One hundred is about the default max # simultaneous tcp
connections.
> Does netstat -an show them, e.g. in TIME_WAIT?
> If they happen in a short time (minutes) you may be hitting the
> default linger timeout. Have you tried setting linger ON with a
0
> timeout?

It does seem to be something to do with TIME_WAIT and linger but
I'm unclear exactly what.  Do any of the following sound familiar?

*) The original problem (with a clean copy of CVS head, compiled
either w/ or w/o debugging enabled) was that the server would
accept a certain number of successive connections then refuse to
accept any more until it was restarted.  Waiting a substantial
amount of time didn't clear the problem up, only re-starting the
server worked, so I don't see how it's a TIME_WAIT problem.

*) I just hacked the linger setting out of fhandler_socket::close
and now the server seems to accept an unbounded number of
successive connections.  I just tried 10000, which is more than
twice the number of temporary ports, w/o any problem.

I'll try some more combinations, but interestingly I can't
recreate this with my direct winsock2 server: linger or not it
runs forever too.  I'll try some more combinations.

Another strangeness I'm getting is that if I run netstat -a on my
win98/SE box, it never shows more than 10 connections (e.g. one
LISTENING and nine, the most recent nine port numbers, in
TIME_WAIT).  This is regardless of the other changes I've
described.  There must be more ports in TIME_WAIT than that
(especially with the linger setting in cygwin) so what's up?  Is
netstat known to be dodgy on win98?

> > Nicholas Wourms (my (un)willing test accomplice) reported "~3
> > minutes" of run time before hitting the same error: so he's
> > getting a thousand or so (?) connections by the sounds of it.
>
> Win98 or ME? If it's ME that reminds of the Xserver problem
> we had a year ago.

I'm assuming ME but Nicholas has yet to confirm that.  I'll go
check the archives for this xserver issue.

Until, I hope we're all having fun :-)

// Conrad



- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019