~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2000.3.1.

Better connection sharing by using only one curl object.

* bzrlib/transport/http/_pycurl.py:
(PyCurlTransport.__init__, PyCurlTransport.has,
PyCurlTransport._get_full): Use only one curl object.
(PyCurlTransport._get_ranged): Use only one curl object. Specify
'Range' as an additional header.
(PyCurlTransport._curl_perform): Take additional headers into
account.
(PyCurlTransport._set_curl_options): Leave _perform do the header
setting.
(PyCurlTransport._curl_perform): Set all headers just before
issuing the request.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: