From: John Törnblom Date: Sun, 11 Mar 2012 17:08:45 +0000 (+0100) Subject: Log timeouts as warnings X-Git-Tag: 2.99~8^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d204718cf9a9dcfe1d88d14cbc99ff9a734e6e7f;p=thirdparty%2Ftvheadend.git Log timeouts as warnings --- diff --git a/src/webui/webui.c b/src/webui/webui.c index ed69ebdf6..1b3d8ca96 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -157,8 +157,9 @@ http_stream_run(http_connection_t *hc, streaming_queue_t *sq, th_subscription_t getsockopt(hc->hc_fd, SOL_SOCKET, SO_ERROR, (char *)&err, &errlen); //Abort upon socket error, or after 20 seconds of silence - if(err || timeouts >= 20){ - run = 0; + if(err || timeouts >= 20) { + tvhlog(LOG_WARNING, "webui", "Timeout waiting for packets"); + run = 0; } } pthread_mutex_unlock(&sq->sq_mutex);