apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apr/test sendfile.c
Date Thu, 21 Dec 2000 20:08:36 GMT
rbb         00/12/21 12:08:36

  Modified:    test     sendfile.c
  Log:
  The sendfile test needs to treat TIMEOUT clients as if they were
  NON-blocking.  There is no reason to think that a TIMEOUT client will
  be able to send everything in one pass.
  
  Revision  Changes    Path
  1.3       +1 -1      apr/test/sendfile.c
  
  Index: sendfile.c
  ===================================================================
  RCS file: /home/cvs/apr/test/sendfile.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sendfile.c	2000/12/04 22:26:52	1.2
  +++ sendfile.c	2000/12/21 20:08:35	1.3
  @@ -307,7 +307,7 @@
           strlen(TRL1) + strlen(TRL2) + TRL3_LEN +
           FILE_LENGTH;
       
  -    if (socket_mode == BLK || socket_mode == TIMEOUT) {
  +    if (socket_mode == BLK) {
           current_file_offset = 0;
           len = FILE_LENGTH;
           rv = apr_sendfile(sock, f, &hdtr, &current_file_offset, &len, 0);
  
  
  

Mime
View raw message