public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: XWin listens on too many TCP ports and killing existing connections.
       [not found] <20040529143625.71658.qmail@web50107.mail.yahoo.com>
@ 2004-05-29 22:50 ` Alexander Gottwald
  2004-05-30  3:55   ` Christopher Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Gottwald @ 2004-05-29 22:50 UTC (permalink / raw)
  To: cygwin; +Cc: cygwin-xfree

Caphe Noir wrote:

> From: "Alexander Gottwald"
> <Alexander.Gottwald@s1999.tu-chemnitz.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.

> BTW, thanks for providing the source code.

No problem. This was just small socket programming praxis.

bye
    ago
NP: Lacrimosa - Alles Lüge
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723

--
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XWin listens on too many TCP ports and killing existing connections.
  2004-05-29 22:50 ` XWin listens on too many TCP ports and killing existing connections Alexander Gottwald
@ 2004-05-30  3:55   ` Christopher Faylor
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2004-05-30  3:55 UTC (permalink / raw)
  To: cygwin, cygwin-xfree

On Sat, May 29, 2004 at 11:14:17PM +0200, Alexander Gottwald wrote:
>Caphe Noir wrote:
>>From: "Alexander Gottwald"
>><Alexander.Gottwald@s1999.tu-chemnitz.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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XWin listens on too many TCP ports and killing existing connections.
@ 2004-05-30 17:47 Caphe Noir
  0 siblings, 0 replies; 3+ messages in thread
From: Caphe Noir @ 2004-05-30 17:47 UTC (permalink / raw)
  To: cygwin-xfree, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1960 bytes --]

Ago -

The connections are not sticky.  Thanks for all the
help.

Regards,
Khoa Nguyen

----- Original Message ----- 
From: "Alexander Gottwald"
<Alexander.Gottwald@s1999.tu-chemnitz.de>
To: <cygwin@cygwin.com>
Cc: <cygwin-xfree@cygwin.com>
Sent: Saturday, May 29, 2004 5:14 PM
Subject: Re: XWin listens on too many TCP ports and
killing existing
connections.


Caphe Noir wrote:

> From: "Alexander Gottwald"
> <Alexander.Gottwald@s1999.tu-chemnitz.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.

> BTW, thanks for providing the source code.

No problem. This was just small socket programming
praxis.

bye
    ago
NP: Lacrimosa - Alles Lüge
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

--
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-30  4:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20040529143625.71658.qmail@web50107.mail.yahoo.com>
2004-05-29 22:50 ` XWin listens on too many TCP ports and killing existing connections Alexander Gottwald
2004-05-30  3:55   ` Christopher Faylor
2004-05-30 17:47 Caphe Noir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).