You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@locus.apache.org on 2000/12/21 21:08:36 UTC

cvs commit: apr/test sendfile.c

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);