From 7b4e3f660129323729df552aab7de3cf70d09c1d Mon Sep 17 00:00:00 2001 From: "roberto@oneiric64" Date: Tue, 29 Nov 2011 19:34:29 +0100 Subject: [PATCH] better error reporting in fastrouter --- plugins/fastrouter/fastrouter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/fastrouter/fastrouter.c b/plugins/fastrouter/fastrouter.c index 6f037adb..94cea37d 100644 --- a/plugins/fastrouter/fastrouter.c +++ b/plugins/fastrouter/fastrouter.c @@ -515,7 +515,8 @@ void fastrouter_loop() { case FASTROUTER_STATUS_RECV_HDR: len = recv(fr_session->fd, (char *)(&fr_session->uh) + fr_session->h_pos, 4-fr_session->h_pos, 0); if (len <= 0) { - uwsgi_error("recv()"); + if (len < 0) + uwsgi_error("recv()"); close_session(fr_table, fr_session); break; }