httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestClient.pm
Date Thu, 18 Sep 2003 01:09:33 GMT
stas        2003/09/17 18:09:33

  Modified:    perl-framework/Apache-Test/lib/Apache TestClient.pm
  Log:
  using send() avoids the need to use SIGPIPE if the server aborts the
  connection
  
  Revision  Changes    Path
  1.7       +4 -2      httpd-test/perl-framework/Apache-Test/lib/Apache/TestClient.pm
  
  Index: TestClient.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestClient.pm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -u -r1.6 -r1.7
  --- TestClient.pm	6 Jun 2003 01:46:13 -0000	1.6
  +++ TestClient.pm	18 Sep 2003 01:09:33 -0000	1.7
  @@ -46,8 +46,10 @@
         "$method $url HTTP/1.0",
         (map { "$_: $headers->{$_}" } keys %$headers), $CRLF;
   
  -    print $s $request;
  -    print $s $content if $content;
  +    # using send() avoids the need to use SIGPIPE if the server aborts
  +    # the connection
  +    $s->send($request);
  +    $s->send($content) if $content;
   
       $request =~ s/\015//g; #for as_string
   
  
  
  

Mime
View raw message