[PATCH] GAS server: Restart the pending response timeout when the response is set
Gustavo Bertoli
gubertoli at gmail.com
Sat Nov 14 11:18:15 PST 2026
Commit 6b67292a5 ("GAS server: Extend timeout for pending responses")
extends the timeout only while the response is missing. A response set
shortly before the timeout, e.g., a DPP Enterprise certBag from a slow
CA, is dropped unless the requester fetches it in the remaining time,
which a single lost Comeback Request prevents. Restart the timeout when
the response is set.
Signed-off-by: Gustavo Bertoli <gubertoli at gmail.com>
---
src/common/gas_server.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/common/gas_server.c b/src/common/gas_server.c
index cdf773643..066c51f42 100644
--- a/src/common/gas_server.c
+++ b/src/common/gas_server.c
@@ -515,6 +515,9 @@ int gas_server_set_resp(struct gas_server *gas, void *resp_ctx,
}
response->resp = resp;
+ eloop_cancel_timeout(gas_server_response_timeout, response, NULL);
+ eloop_register_timeout(GAS_QUERY_TIMEOUT, 0,
+ gas_server_response_timeout, response, NULL);
return 0;
}
--
2.43.0
More information about the Hostap
mailing list