Subject: | libcurl-based downloads are failing |
Hello,
I have a small HTTP::Proxy script that I use for caching yum and rpm
repositories. With the release of RHEL6/CentOS6, I have found that proxy
requests are failing.
How to reproduce:
Server side:
A bare minimum HTTP::Proxy:
$proxy = HTTP::Proxy->new(
port => 8080,
host => undef,
engine => 'Threaded',
);
$proxy->start;
Client side:
export http_proxy=http://192.168.1.1:8080
# curl -O http://mirror.utexas.edu/epel/6/x86_64/repodata/repomd.xml
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
101 4363 101 4363 0 0 14179 0 --:--:-- --:--:-- --:--:--
14211
curl: (18) transfer closed with outstanding read data remaining
# curl --http1.0 -O
http://mirror.utexas.edu/epel/6/x86_64/repodata/repomd.xml
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
101 4363 101 4363 0 0 14826 0 --:--:-- --:--:-- --:--:--
14890
Note that with the --http1.0 option, the download succeeds.
wget-based downloads work fine, but since yum is using libcurl and
pycurl as of RHEL6, yum no longer works with HTTP::Proxy.
Thanks,
Joe