From 291633f8cb612e222fc6a8209ebbbd6904bcf3de Mon Sep 17 00:00:00 2001 From: David Troy Date: Sat, 1 Apr 2006 17:49:34 +0000 Subject: git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@49 f02b47b9-160a-0410-81a6-dc3441afb0ec --- src/astmanproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; ihdrcount; 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; } -- cgit