[asterisk-bugs] [Asterisk 0017239]: [patch] Provisioning failure
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Apr 27 11:44:05 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=17239
======================================================================
Reported By: cjacobsen
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 17239
Category: Resources/res_phoneprov
Reproducibility: always
Severity: major
Priority: normal
Status: feedback
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 258668
Request Review:
======================================================================
Date Submitted: 2010-04-23 18:52 CDT
Last Modified: 2010-04-27 11:44 CDT
======================================================================
Summary: [patch] Provisioning failure
Description:
Cut off 1 character at the end of output because there are two newlines
between http headers and content. Content-length is ok.
======================================================================
----------------------------------------------------------------------
(0120995) cjacobsen (reporter) - 2010-04-27 11:44
https://issues.asterisk.org/view.php?id=17239#c120995
----------------------------------------------------------------------
for static files, the file is sent "twice" because this code:
447 while ((len = read(fd, buf, sizeof(buf))) > 0) {
448 if (fwrite(buf, 1, len, ser->f) != len) {
449 if (errno != EPIPE) {
450 ast_log(LOG_WARNING, "fwrite()
failed: %s\n", strerror(errno));
451 } else {
452 ast_debug(3, "Requester closed
the connection while downloading '%s'\n", path);
453 }
454 break;
455 }
456 }
If i remove it, it works fine. I guess that the ast_http_send function is
enough in this case.
Issue History
Date Modified Username Field Change
======================================================================
2010-04-27 11:44 cjacobsen Note Added: 0120995
======================================================================
More information about the asterisk-bugs
mailing list