X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_recv.c;h=3a723299e78b241a9ac4f44a13caf91651f36b6a;hp=67691a34f121db02365a884ef1fd4e63cc63d918;hb=e7f035b3ad7ecc64ec87d9ce890f89365dec1411;hpb=1f12ea375358a0b30689e01efe82796ea4fcb14f diff --git a/http_recv.c b/http_recv.c index 67691a34..3a723299 100644 --- a/http_recv.c +++ b/http_recv.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file http_recv.c paraslash's http receiver */ @@ -110,8 +106,10 @@ static int http_recv_post_select(struct sched *s, void *context) } if (phd->status == HTTP_SENT_GET_REQUEST) { ret = read_pattern(rn->fd, HTTP_OK_MSG, strlen(HTTP_OK_MSG), &s->rfds); - if (ret < 0) + if (ret < 0) { + PARA_ERROR_LOG("did not receive HTTP OK message\n"); goto out; + } if (ret == 0) return 0; PARA_INFO_LOG("received ok msg, streaming\n"); @@ -132,8 +130,10 @@ static int http_recv_post_select(struct sched *s, void *context) btr_add_output_pool(rn->btrp, num_bytes - iov[0].iov_len, btrn); } out: - if (ret < 0) + if (ret < 0) { + PARA_NOTICE_LOG("%s\n", para_strerror(-ret)); btr_remove_node(&rn->btrn); + } return ret; }