~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_pycurl.py

  • Committer: Aaron Bentley
  • Date: 2006-12-13 04:40:14 UTC
  • mfrom: (2172.3.2 bzr.73948)
  • mto: This revision was merged to the branch mainline in revision 2181.
  • Revision ID: aaron.bentley@utoronto.ca-20061213044014-ovrud8mi4aii2x22
Merge short read fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
                        _pycurl_errors.CURLE_COULDNT_RESOLVE_PROXY):
254
254
                raise ConnectionError('curl connection error (%s)\non %s'
255
255
                              % (e[1], url))
 
256
            elif e[0] == _pycurl_errors.CURLE_PARTIAL_FILE:
 
257
                # Pycurl itself has detected a short read, we do
 
258
                # not have all the informations for the
 
259
                # ShortReadvError, but that should be enough
 
260
                raise errors.ShortReadvError(url,
 
261
                                             offset='unknown', length='unknown',
 
262
                                             actual='unknown',
 
263
                                             extra='Server aborted the request')
256
264
            # jam 20060713 The code didn't use to re-raise the exception here
257
265
            # but that seemed bogus
258
266
            raise