perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Pang <>
Subject Re: Broken pipe
Date Fri, 17 Feb 2006 13:04:04 GMT
>From the 'Practical mod_perl' book,

When a user presses the Stop or Reload button, the current socket connection is broken (aborted).

If the reading of the request's data is completed and the code does its processing without
writing anything back to the client, the broken connection won't be noticed. When an attempt
is made to send at least one character to the client, the broken connection will be noticed
and the SIGPIPE signal (Broken Pipe) will be sent to the process. The program can then halt
its execution and perform all its cleanup requirements.

So I think you should be careful to handle the "User Pressed Stop Button" case.
Also see here pls:

-----Original Message-----
>From: Octavian Rasnita <>
>Sent: Feb 17, 2006 7:51 AM
>Subject: Broken pipe
>I have seen in the error log of Apache the following line (for more times,
>exactly the same):
>[Fri Feb 17 13:58:04 2006] [info] [client] (32)Broken pipe:
>core_output_filter: writing data to the network
>I can see [info]. Do this means that it is not a real error but just a
>Why does it appear?
>I have followed the suggestions, searched the web, and I have also put in
>EnableSendfile Off
>But these errors continue to appear.

Jeff Pang
NetEase AntiSpam Team

View raw message