From d30597f7284c58d3d93b770b79d77175373f0bba Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 31 Oct 2017 07:02:51 +0800 Subject: [PATCH] ah: increase timeout sanity check to ah_idle + 60 --- lib/service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/service.c b/lib/service.c index 1de44ad7..f04324e1 100644 --- a/lib/service.c +++ b/lib/service.c @@ -1042,7 +1042,8 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, int t const unsigned char *c; if (!ah->in_use || !ah->wsi || !ah->assigned || - now - ah->assigned < 60) { + (ah->wsi->vhost && now - ah->assigned < + ah->wsi->vhost->timeout_secs_ah_idle + 60)) { ah = ah->next; continue; }