The Protocols.HTTP.Query timeout is lost during TLS negotiation when using proxies.
Imported from https://youtrack.roxen.com/issue/PIKE-7
Reported by @grubba
In the interval between Protocols.HTTP.https_proxy_connect_ok() being called, and do_sync_method() being called on successful TLS connection there is no active timeout. This means that if the TLS server is stopped, the connection will hang indefinitely even if a timeout has been set.