diff options
-rw-r--r-- | src/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ int _read(struct mansession *s, struct message *m) { BuildHTTPHeader(header); pthread_mutex_lock(&s->lock); s->inputcomplete = 1; - write(s->fd, header, strlen(header)); + ast_carefulwrite(s->fd, header, strlen(header), s->writetimeout); pthread_mutex_unlock(&s->lock); debugmsg("header: %s", header); |