1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

ah: increase timeout sanity check to ah_idle + 60

This commit is contained in:
Andy Green 2017-10-31 07:01:11 +08:00
parent 52f2ac57ea
commit 793d8bfa13

View file

@ -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;
}