From 5ac37558e30eea66d5249bb01b8fb8d47d0e944d Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 6 Oct 2009 10:21:45 +0200 Subject: [PATCH] Ensure that there is a cleanup event for proxied packets If there was no reply, clean up, reject, etc. the request. This doesn't matter so much for normal clients, as they will retransmit and cause the old request to be deleted from the request hash. But detail requests have random ports (for other reasons), so they won't be cleaned up by new packets. Therefore, we need to clean them up... --- src/main/event.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/event.c b/src/main/event.c index 139b918..3637ba5 100644 --- a/src/main/event.c +++ b/src/main/event.c @@ -1115,6 +1115,12 @@ static void no_response_to_proxied_request(void *ctx) request->proxy->dst_port); post_proxy_fail_handler(request); + } else { + /* + * Ensure that there is a callback for the request. + */ + request->child_state = REQUEST_RUNNING; + wait_a_bit(request); } /* -- 2.1.4