httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/network_io/os2 sendrecv.c
Date Mon, 14 Feb 2000 14:01:42 GMT
bjh         00/02/14 06:01:42

  Modified:    src/lib/apr/network_io/os2 sendrecv.c
  Log:
  OS/2: ap_send/ap_recv/ap_sendv should set len to 0, not -1, when an error
  occurrs.
  
  Revision  Changes    Path
  1.7       +6 -6      apache-2.0/src/lib/apr/network_io/os2/sendrecv.c
  
  Index: sendrecv.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/os2/sendrecv.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- sendrecv.c	1999/11/03 14:03:25	1.6
  +++ sendrecv.c	2000/02/14 14:01:42	1.7
  @@ -73,7 +73,7 @@
               rv = select(&fds, 0, 1, 0, sock->timeout >= 0 ? sock->timeout*1000
: -1);
   
               if (rv != 1) {
  -                *len = -1;
  +                *len = 0;
                   err = sock_errno();
   
                   if (rv == 0)
  @@ -91,7 +91,7 @@
       } while (err == SOCEINTR || err == SOCEWOULDBLOCK);
   
       if (err) {
  -        *len = -1;
  +        *len = 0;
           return os2errno(err);
       }
   
  @@ -112,7 +112,7 @@
               rv = select(&fds, 1, 0, 0, sock->timeout >= 0 ? sock->timeout*1000
: -1);
   
               if (rv != 1) {
  -                *len = -1;
  +                *len = 0;
                   err = sock_errno();
   
                   if (rv == 0)
  @@ -130,7 +130,7 @@
       } while (err == SOCEINTR || err == SOCEWOULDBLOCK);
   
       if (err) {
  -        *len = -1;
  +        *len = 0;
           return os2errno(err);
       }
   
  @@ -155,7 +155,7 @@
               rv = select(&fds, 0, 1, 0, sock->timeout >= 0 ? sock->timeout*1000
: -1);
   
               if (rv != 1) {
  -                *len = -1;
  +                *len = 0;
                   err = sock_errno();
   
                   if (rv == 0)
  @@ -173,7 +173,7 @@
       } while (err == SOCEINTR || err == SOCEWOULDBLOCK);
   
       if (err) {
  -        *len = -1;
  +        *len = 0;
           return os2errno(err);
       }
   
  
  
  

Mime
View raw message