Closed GoogleCodeExporter closed 9 years ago
Issue 280 has been merged into this issue.
Original comment by gambit47
on 27 Feb 2014 at 6:44
As suspected, when TIdHTTP connects to an HTTP proxy (both SSL and non-SSL) and
keep-alive is enabled, after the first request is finished TIdHTTP tries to
send a CONNECT request again on subsequent requests, but the CONNECTs are sent
directly to the target HTTP server and to the proxy. This is causing timeout
errors in TIdHTTP if the server does not reply to the CONNECTs (it appears that
IIS does not).
When an HTTP keep-alive is used, TIdHTTP maintains the socket connection with
the proxy and does not disconnect unless its ProxyServer/ProxyPort properties
are changed or the proxy/target closes the connection.
When sending multiple HTTP requests over a kept-alive proxy connection, TIdHTTP
needs to check if it is already connected to a proxy and not send CONNECT more
than once.
Original comment by gambit47
on 27 Feb 2014 at 6:44
Original comment by gambit47
on 8 Apr 2014 at 1:57
Original comment by gambit47
on 22 Jul 2014 at 12:54
Original issue reported on code.google.com by
gambit47
on 24 Feb 2014 at 6:06