delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/29/19:36:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 29 May 2004 19:35:44 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com, cygwin-xfree AT cygwin DOT com
Subject: Re: XWin listens on too many TCP ports and killing existing connections.
Message-ID: <20040529233544.GC32477@coe.bosbc.com>
Reply-To: cygwin-xfree AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, cygwin-xfree AT cygwin DOT com
References: <20040529143625 DOT 71658 DOT qmail AT web50107 DOT mail DOT yahoo DOT com> <Pine DOT LNX DOT 4 DOT 55 DOT 0405292308380 DOT 30532 AT lupus DOT ago DOT vpn>
Mime-Version: 1.0
In-Reply-To: <Pine.LNX.4.55.0405292308380.30532@lupus.ago.vpn>
User-Agent: Mutt/1.4.1i

On Sat, May 29, 2004 at 11:14:17PM +0200, Alexander Gottwald wrote:
>Caphe Noir wrote:
>>From: "Alexander Gottwald"
>><Alexander DOT Gottwald AT s1999 DOT tu-chemnitz DOT de>
>>>I've created a small testprogram which calls select with a timeout of 1
>>>second.  Get it from
>>>http://www.tu-chemnitz.de/~goal/xfree/select.tar.gz unpack and run it:
>>>/select.exe www.google.com 80
>>>
>>>This will print lines with "timeout".  Do you get a new connection with
>>>every timeout message?
>>
>>Sure does, a new listening connection at every timeout.
>
>Are the connections sticky?  I've just run it on my cygwin installation
>and the number of connections is fixed.  There is a new connection
>every second but the old disappears before the new is created.
>
>If you experience a different behaviour than it must be a problem with
>ZoneAlarm or an other program installed on your host.
>
>>Is there any work-around for this select problem?
>
>I'm directing the message to the cygwin list since this problem also
>occurs with a plain small cygwin program and is not bound to Cygwin/X
>at all.

I think I already mentioned that this is standard cygwin behavior.
There is no reason to rehash it again.  I'm sure that google would be
informative on this subject.

If someone don't like the fact that cygwin opens a listening socket
whenever it uses select then -- either don't use cygwin or look at the
code in select.cc and suggest a better plan.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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