httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@ukweb.com>
Subject NT fix
Date Sun, 29 Jun 1997 14:46:00 GMT
The new NT listener fix missed part of my original patch. The return value
from a failed accept() is INVALID_SOCKET, not SOCKET_ERROR. Here is a
patch. 

//pcs

Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_main.c,v
retrieving revision 1.166
diff -c -r1.166 http_main.c
*** http_main.c	1997/06/29 00:03:17	1.166
--- http_main.c	1997/06/29 14:43:09
***************
*** 3176,3182 ****
              clen = sizeof(sa_client);
              csd  = accept(sd, (struct sockaddr *)&sa_client, &clen);
  #ifdef WIN32
!             if(csd == SOCKET_ERROR)
              {
                  csd = -1;
                  errno = WSAGetLastError() - WSABASEERR;
--- 3176,3182 ----
              clen = sizeof(sa_client);
              csd  = accept(sd, (struct sockaddr *)&sa_client, &clen);
  #ifdef WIN32
!             if(csd == INVALID_SOCKET)
              {
                  csd = -1;
                  errno = WSAGetLastError() - WSABASEERR;


Mime
View raw message