From 856a841820f99d9aaf37dffdbe0f86ab400416d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 3 Oct 2009 17:14:56 +0200 Subject: [PATCH] Move io-timeout message into log_request_handling --- src/main/worker.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/worker.c b/src/main/worker.c index 74f8288..f1adf6b 100644 --- a/src/main/worker.c +++ b/src/main/worker.c @@ -149,9 +149,13 @@ static void worker_io_timeout_cb(struct ev_loop *loop, ev_timer *w, int revents) UNUSED(revents); while ((wqe = li_waitqueue_pop(&wrk->io_timeout_queue)) != NULL) { + liVRequest *vr; /* connection has timed out */ con = wqe->data; - _DEBUG(con->srv, con->mainvr, "connection io-timeout from %s after %.2f seconds", con->remote_addr_str->str, now - wqe->ts); + vr = con->mainvr; + if (CORE_OPTION(LI_CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) { + VR_DEBUG(vr, "connection io-timeout from %s after %.2f seconds", con->remote_addr_str->str, now - wqe->ts); + } li_plugins_handle_close(con); worker_con_put(con); }