[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47174] [PATCH v2 2/2] substitute: Handle closing connections to sub
From: |
Christopher Baines |
Subject: |
[bug#47174] [PATCH v2 2/2] substitute: Handle closing connections to substitute servers. |
Date: |
Thu, 20 May 2021 11:59:06 +0100 |
User-agent: |
mu4e 1.4.15; emacs 27.2 |
Mathieu Othacehe <othacehe@gnu.org> writes:
>> + (match (assq 'connection (response-headers response))
>> + (('connection 'close)
>> + (lambda ()
>> + (close-port port)))
>
> You could maybe factorize it in a close-connection? procedure. Out of
> curiosity, when does the remote server asks for connection closing?
A server can at any time ask for the connection to be closed. With NGinx
for example, by default, it'll close connections after 1000 requests:
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive_requests
signature.asc
Description: PGP signature