From 815f3cebf703ed5354211299c3be36d0fde6cc1d Mon Sep 17 00:00:00 2001 From: aland Date: Mon, 31 May 2004 18:29:23 +0000 Subject: [PATCH] Move fix from the head to the branch --- src/main/request_list.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/request_list.c b/src/main/request_list.c index f388181d42..916cbd8932 100644 --- a/src/main/request_list.c +++ b/src/main/request_list.c @@ -472,15 +472,12 @@ void rl_delete(REQUEST *request) /* - * If there's a proxied packet, but no reply - * to it, then delete the packet from the list - * of outstanding proxied requests. - * - * If there IS a reply, then the packets have - * already been deleted from the relevant trees, - * so we don't need to do it here. + * If there's a proxied packet, and we're still + * waiting for a reply, then delete the packet + * from the list of outstanding proxied requests. */ - if (request->proxy && !request->proxy_reply) { + if (request->proxy && + (request->proxy_outstanding > 0)) { pthread_mutex_lock(&proxy_mutex); node = rbtree_find(proxy_tree, request); rl_delete_proxy(request, node); -- 2.47.3