Subject: Re: [bug#47174] [PATCH v2 2/2] substitute: Handle closing connections to substitute servers.

From: Mathieu Othacehe <[email-masked]>
Date: Mon, 17 May 2021 16:46:27 +0200

> +                       (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?

Thanks,

Mathieu