[asterisk-bugs] [Asterisk 0013546]: Partial writes on Manager API

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 18 15:45:36 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13546 
====================================================================== 
Reported By:                srt
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   13546
Category:                   Core/ManagerInterface
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-23 08:35 CDT
Last Modified:              2008-12-18 15:45 CST
====================================================================== 
Summary:                    Partial writes on Manager API
Description: 
Sometimes writing manager events with ast_carefulwrite in manager.c only
results in a partial write i.e. not all data is written to the socket.
There is no check for this and no code to send the missing data. As a
workaround increasing the writetimeout in manager.conf mitigates this
issue.
See
http://jira.reucon.org/browse/AJ-174?focusedCommentId=10522#action_10522
for details.
====================================================================== 

---------------------------------------------------------------------- 
 (0096678) svnbot (reporter) - 2008-12-18 15:45
 http://bugs.digium.com/view.php?id=13546#c96678 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 165802

_U  branches/1.6.0/
U   branches/1.6.0/main/utils.c

------------------------------------------------------------------------
r165802 | russell | 2008-12-18 15:45:33 -0600 (Thu, 18 Dec 2008) | 27
lines

Merged revisions 165801 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r165801 | russell | 2008-12-18 15:44:47 -0600 (Thu, 18 Dec 2008) | 19
lines

Merged revisions 165796 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r165796 | russell | 2008-12-18 15:39:25 -0600 (Thu, 18 Dec 2008) | 11
lines

Make ast_carefulwrite() be more careful.

This patch handles some additional cases that could result in partial
writes
to the file description.  This was done to address complaints about
partial
writes on AMI.

(issue http://bugs.digium.com/view.php?id=13546) (more changes needed to address
potential problems in 1.6)
Reported by: srt
Tested by: russell
Review: http://reviewboard.digium.com/r/99/

........

................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=165802 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-18 15:45 svnbot         Checkin                                      
2008-12-18 15:45 svnbot         Note Added: 0096678                          
======================================================================




More information about the asterisk-bugs mailing list