perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cho...@hyperreal.org
Subject cvs commit: modperl/src/modules/perl Apache.xs
Date Wed, 03 Nov 1999 17:40:40 GMT
cholet      99/11/03 09:40:39

  Modified:    .        Changes
               src/modules/perl Apache.xs
  Log:
  bugfix in write_client() when running under APACHE_SSL.
  Michael Douglass's patch <19991102180747.D79260@staff.texas.net>,
  I added breaking out of the outer loop.
  
  Revision  Changes    Path
  1.355     +3 -0      modperl/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /export/home/cvs/modperl/Changes,v
  retrieving revision 1.354
  retrieving revision 1.355
  diff -u -r1.354 -r1.355
  --- Changes	1999/10/12 17:41:46	1.354
  +++ Changes	1999/11/03 17:40:29	1.355
  @@ -10,6 +10,9 @@
   
   =item 1.21_01-dev
   
  +bugfix in write_client() when running under APACHE_SSL
  +[Michael Douglass <mikedoug@staff.texas.net>]
  +
   document the fact that $r->connection->user can be used to set
   the authenticated user name [Joshua Gerth <jgerth@ptdcs2.ra.intel.com>]
   
  
  
  
  1.80      +6 -8      modperl/src/modules/perl/Apache.xs
  
  Index: Apache.xs
  ===================================================================
  RCS file: /export/home/cvs/modperl/src/modules/perl/Apache.xs,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- Apache.xs	1999/09/22 16:24:44	1.79
  +++ Apache.xs	1999/11/03 17:40:36	1.80
  @@ -991,18 +991,16 @@
   	buffer = SvPV(sv, len);
   #ifdef APACHE_SSL
           while(len > 0) {
  -            sent = 0;
  -	    if(len < HUGE_STRING_LEN) {
  -	        sent = rwrite(buffer, len, r);
  -	    }
  -	    else {
  -	        sent = rwrite(buffer, HUGE_STRING_LEN, r);
  -	        buffer += HUGE_STRING_LEN;
  -	    }
  +	    sent = rwrite(buffer,
  +	        	  len < HUGE_STRING_LEN ? len : HUGE_STRING_LEN,
  +	        	  r);
   	    if(sent < 0) {
   		rwrite_neg_trace(r);
  +		/* break out of outer loop too */
  +		i = items;
   		break;
   	    }
  +	    buffer += sent;
   	    len -= sent;
   	    RETVAL += sent;
           }
  
  
  

Mime
View raw message