Summary:ASTERISK-15498: Hundreds (thousands?) of WARNING messages when data sent via res_phoneprov
Reporter:Leif Madsen (lmadsen)Labels:
Date Opened:2010-01-23 10:36:34.000-0600Date Closed:2010-06-15 16:42:34
Versions:Frequency of
Description:I get a LOT of these messages whenever data is being sent via res_phoneprov to a device which is booting. Actually, likely this isn't an issue with res_phoneprov but rather an issue with the HTTP server inside Asterisk?

[Jan 22 20:29:27] WARNING[32621] http.c: fwrite() failed: Broken pipe

The WARNINGs stop as soon as no more data is being sent to the device, and Asterisk doesn't crash or anything, but something is maybe not being freed correctly? (wild guess)

That message came from the log file I made, which had debugging enabled, but I didn't see anything else.

I can produce any logging or backtraces, etc... as this is on a development box.
Comments:By: Leif Madsen (lmadsen) 2010-01-23 10:37:28.000-0600

I've made issue ASTERISK-15496 a child of this issue as it is required in order to even get this far, as without it Asterisk segfaults (crashes) as soon as a file is requested via res_phoneprov.

By: Digium Subversion (svnbot) 2010-06-15 16:42:33

Repository: asterisk
Revision: 270692

U   trunk/main/http.c

r270692 | twilson | 2010-06-15 16:42:33 -0500 (Tue, 15 Jun 2010) | 9 lines

Don't continue sending the file when there has been an error

If there is a problem with a firmware file, Polycom phones will close the
connection. We were continuing to send the file anyway. There should be no
reason to continue sending a file if there is an error writing it.

(closes issue ASTERISK-15498)
Reported by: lmadsen