Home GnuPG
Diffusion GnuPG 848546b05ab0

dirmngr: Fix the regression of use of proxy for TLS connection.

Description

dirmngr: Fix the regression of use of proxy for TLS connection.

* dirmngr/http.c (run_proxy_connect): Don't set keep_alive, since it
causes resource leak of FP_WRITE.
Don't try to read response body to fix the hang.
  • GnuPG-bug-id: T6997
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Event Timeline

werner added inline comments.
/dirmngr/http.c
2611

Hi!

I am wondering why I added this code. It could be just debug code.

gniibe added inline comments.
/dirmngr/http.c
2611

There is a little possibility that this is (actually) needed with an implementation of proxy.
Please test with a proxy in question on Windows.

/dirmngr/http.c
2611

Alright. I also looked again into it and it really seems to be debug code. In particular the setting of the up_to_empty_line wouldn't be correct otherwise.