diff options
author | David Troy <dave@popvox.com> | 2006-04-01 17:49:34 +0000 |
---|---|---|
committer | David Troy <dave@popvox.com> | 2006-04-01 17:49:34 +0000 |
commit | 291633f8cb612e222fc6a8209ebbbd6904bcf3de (patch) | |
tree | f739fec02a788e4497da8fda995b41680439c9ed | |
parent | 268eacb1fa13470f22d6bcea81e9403d3824e8cb (diff) | |
download | astmanproxy-291633f8cb612e222fc6a8209ebbbd6904bcf3de.tar.gz astmanproxy-291633f8cb612e222fc6a8209ebbbd6904bcf3de.tar.xz astmanproxy-291633f8cb612e222fc6a8209ebbbd6904bcf3de.zip |
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@49 f02b47b9-160a-0410-81a6-dc3441afb0ec
-rw-r--r-- | src/astmanproxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/astmanproxy.c b/src/astmanproxy.c index c24fb56..065c05a 100644 --- a/src/astmanproxy.c +++ b/src/astmanproxy.c @@ -225,10 +225,10 @@ int WriteAsterisk(struct message *m) { for (i=0; i<m->hdrcount; i++) { if (strcasecmp(m->headers[i], "Server:") ) { sprintf(outstring, "%s\r\n", m->headers[i]); - write(s->fd, outstring, strlen(outstring) ); + ast_carefulwrite(s->fd, outstring, strlen(outstring), s->writetimeout ); } } - write(s->fd, "\r\n", 2); + ast_carefulwrite(s->fd, "\r\n", 2, s->writetimeout); pthread_mutex_unlock(&s->lock); return 1; } |