This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] interruptable accept


On Mon, Jul 01, 2002 at 01:12:24PM +0200, Thomas Pfaff wrote:
> 
> This patch is not 100% perfect and could be done better (faster response
> on incoming signal) with async Events but this would require a much larger
> patch (Call AsyncEventSelect, WaitForMultipleObjects (socket and signal),
> check for pending connection and set socket back to blocking mode).

Do you mean WSAEventSelect?  Would that be actually that big a patch?  
I'm not quite sure if a busy loop is a better solution.

> 2002-07-01  Thomas Pfaff  <tpfaff@gmx.net>
> 
> 	*net.cc: Include select.h
> 	(cygwin_accept): If socket is nonblocking check for a pending
> 	signal every 100ms.

Ahem, did you have a look into the current CVS sources?  Your patch
isn't against the latest from CVS.  I've moved most of the socket
funtionality into the fhandler_socket class the week before.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]