diff options
author | David Troy <dave@popvox.com> | 2006-04-01 17:55:39 +0000 |
---|---|---|
committer | David Troy <dave@popvox.com> | 2006-04-01 17:55:39 +0000 |
commit | 003236f73567a285b35fc8d571ac94fb0bc51278 (patch) | |
tree | 205367ccb2b0efd7e22ae84895c493653c205e9a /src/xml.c | |
parent | 291633f8cb612e222fc6a8209ebbbd6904bcf3de (diff) | |
download | astmanproxy-003236f73567a285b35fc8d571ac94fb0bc51278.tar.gz astmanproxy-003236f73567a285b35fc8d571ac94fb0bc51278.tar.xz astmanproxy-003236f73567a285b35fc8d571ac94fb0bc51278.zip |
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@50 f02b47b9-160a-0410-81a6-dc3441afb0ec
Diffstat (limited to 'src/xml.c')
-rw-r--r-- | src/xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -74,7 +74,7 @@ int _write(struct mansession *s, struct message *m) { sprintf(buf, "<%s>\r\n", xmldoctag); pthread_mutex_lock(&s->lock); - write(s->fd, buf, strlen(buf)); + ast_carefulwrite(s->fd, buf, strlen(buf), s->writetimeout); for (i=0; i<m->hdrcount; i++) { memset(xmlescaped, 0, sizeof xmlescaped); @@ -89,10 +89,10 @@ int _write(struct mansession *s, struct message *m) { strcat(outstring, "\"/>\r\n"); } else sprintf(outstring, " <%s Value=\"%s\"/>\r\n", XML_UNPARSED, lpos); - write(s->fd, outstring, strlen(outstring) ); + ast_carefulwrite(s->fd, outstring, strlen(outstring), s->writetimeout); } sprintf(buf, "</%s>\r\n\r\n", xmldoctag); - write(s->fd, buf, strlen(buf)); + ast_carefulwrite(s->fd, buf, strlen(buf), s->writetimeout); pthread_mutex_unlock(&s->lock); return 0; |