Ignore:
Timestamp:
Apr 28, 2001, 6:15:18 PM (24 years ago)
Author:
sandervl
Message:

YD: fixes for opera

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/wsock32.cpp

    r4860 r5625  
    1 /* $Id: wsock32.cpp,v 1.34 2000-12-30 14:07:24 sandervl Exp $ */
     1/* $Id: wsock32.cpp,v 1.35 2001-04-28 16:15:18 sandervl Exp $ */
    22
    33/*
     
    235235        return SOCKET_ERROR;
    236236   }
    237    ret = soclose(s);
    238237   //Close WSAAsyncSelect thread if one was created for this socket
    239238   FindAndSetAsyncEvent(s, 0, 0, 0);
     239
     240   // wait thread termination
     241   DosSleep(10);
     242   ret = soclose(s);
    240243
    241244   if(ret == SOCKET_ERROR) {
     
    603606                dprintf(("recv returned 0, but socket is still connected -> return WSAWOULDBLOCK"));
    604607                WSASetLastError(WSAEWOULDBLOCK);
    605                 ret = SOCKET_ERROR;
     608                ret = 0; //graceful close
    606609        }
    607610   }
Note: See TracChangeset for help on using the changeset viewer.