]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 166282 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Mon, 22 Dec 2008 17:14:18 +0000 (17:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 22 Dec 2008 17:14:18 +0000 (17:14 +0000)
commit70416419cea61ee568ee3565d9312b43ca21df1d
treec28a6c5c2b21a54af8050523911aeaeff17d6b19
parent2e8b3deab5ab5059f98d1226b0e8b02ef41814e0
Merged revisions 166282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166282 | russell | 2008-12-22 11:09:36 -0600 (Mon, 22 Dec 2008) | 12 lines

Introduce ast_careful_fwrite() and use in AMI to prevent partial writes.

This patch introduces a function to do careful writes on a file stream which
will handle timeouts and partial writes.  It is currently used in AMI to
address the issue that has been reported.  However, there are probably a few
other places where this could be used.

(closes issue #13546)
Reported by: srt
Tested by: russell
http://reviewboard.digium.com/r/104/

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@166283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/utils.h
main/manager.c
main/utils.c