X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_send.c;h=eddc0295f229a26c4e826d8656712c4609a35989;hp=8b705d0d156b65f57caab561163b32c65fb77c92;hb=d0d27cfa56d05eaa0e5567c75adfe606eab2957e;hpb=1cefe6a503c74d609db4e99e689d46575a5e40fd diff --git a/http_send.c b/http_send.c index 8b705d0d..eddc0295 100644 --- a/http_send.c +++ b/http_send.c @@ -53,7 +53,7 @@ static struct sender_status http_sender_status, *hss = &http_sender_status; static int http_send_msg(struct sender_client *sc, const char *msg) { - int ret = send_buffer(sc->fd, msg); + int ret = write_buffer(sc->fd, msg); if (ret < 0) shutdown_client(sc, hss); @@ -125,7 +125,7 @@ static void http_send_chunk(struct sender_client *sc, struct sender_status *ss, ret = queue_chunk_or_shutdown(sc, ss, buf, len); goto out; } - ret = write_nonblock(sc->fd, buf, len); + ret = xwrite(sc->fd, buf, len); if (ret < 0) { shutdown_client(sc, ss); goto out;