delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/16/00:35:03

From: Keetnet AT wilmington DOT net (Keet / Foxbird)
Subject: Accept behaviour...
16 Mar 1998 00:35:03 -0800 :
Message-ID: <3.0.32.19980314233258.007abce0.cygnus.gnu-win32@wilmington.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

There seems to be some really strange behaviour in the accept calls. After
calling accept about 50 times to poll socket activity, it just freezes
until a connection is established, rather than continuing the loop. The
socket is created, is a stream socket, set non-blocking, and then passed to
accept. The accept line looks like:

        new_socket = accept(sockettopoll, (struct sockaddr *)&foreign_addr,
                &sin_size);

Doesn't look overly strange, but for some reason, the code just stops at
this point and waits and waits for a connection that never shows. When a
connection does occur, the loop cycles does it's connection routine, and
then freezes again waiting for another accept..

any ideas on this?

- Greg


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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