/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2009-09-14 01:48:28 UTC
  • mfrom: (4685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4688.
  • Revision ID: mbp@sourcefrog.net-20090914014828-ydr9rlkdfq2sv57z
Merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
# actual code more or less do that, tests should be written to
47
47
# ensure that.
48
48
 
 
49
import errno
49
50
import httplib
50
51
try:
51
52
    import kerberos
541
542
                        request.get_full_url(),
542
543
                        'Bad status line received',
543
544
                        orig_error=exc_val)
 
545
                elif (isinstance(exc_val, socket.error) and len(exc_val.args)
 
546
                      and exc_val.args[0] in (errno.ECONNRESET, 10054)):
 
547
                    raise errors.ConnectionReset(
 
548
                        "Connection lost while sending request.")
544
549
                else:
545
550
                    # All other exception are considered connection related.
546
551