From 40e59a86523d9477f2d40e58ccde8cdad9832efd Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Thu, 6 Dec 2012 19:15:41 -0700 Subject: [PATCH] Fix cancellation of of waiting clients Search waiting_client_list for client to-be-cancelled, in addition to active_client_list. --- src/objects.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/objects.c b/src/objects.c index b61387f..aa4a93c 100644 --- a/src/objects.c +++ b/src/objects.c @@ -1076,6 +1076,13 @@ void accept_cancel_request(PgSocket *req) goto found; } } + statlist_for_each(citem, &pool->waiting_client_list) { + client = container_of(citem, PgSocket, head); + if (memcmp(client->cancel_key, req->cancel_key, 8) == 0) { + main_client = client; + goto found; + } + } } found: -- 2.40.0