not-yet-connected sockets?

Daniel Walker diwalker at earthlink.net
Fri Aug 17 09:02:59 CDT 2001


Ove Kaaven wrote:
> 
> On Fri, 17 Aug 2001, Daniel Walker wrote:
> 
> > Ove Kaaven wrote:
> > >
> > > On Thu, 16 Aug 2001, Daniel Walker wrote:
> > >
> > > >       The problem is that poll returns POLLHUP when a socket isn't connected,
> > > > then wine ignores the socket and it's events .. I realize this has been
> > > > known for a some time(since linux 2.4), but why hasn't it been fix?
> > > > Doesn't this effect a lot of non-blocking socket applications?
> > >
> > > No, since this problem was fixed half a year ago, it shouldn't affect
> > > anything.
> >
> >       It must not be completely fixed.. Where is the patch that fixed it?
> 
> http://www.winehq.com/cvsweb/wine/server/sock.c.diff?r1=1.11&r2=1.12

	This fixes the problem that I'm seeing .. Any version of Bearshare seem
to be effected ..

						Daniel Walker

Index: sock.c
===================================================================
RCS file: /home/wine/wine/server/sock.c,v
retrieving revision 1.18
diff -u -r1.18 sock.c
--- sock.c      2001/05/14 20:09:39     1.18
+++ sock.c      2001/08/17 12:58:03
@@ -548,7 +548,7 @@
     sock->hmask &= ~req->mask;
     sock->state |= req->sstate;
     sock->state &= ~req->cstate;
-    sock_reselect( sock );
+/*    sock_reselect( sock ); */
 
     /* service trigger */
     if (req->mask & WS_FD_SERVEVENT)




More information about the wine-devel mailing list