[MERGE] Fix infinite busy-loop caused by connection loss during read of response body in HPSS v1 and v2.
Andrew Bennetts
andrew at canonical.com
Mon Jun 2 02:16:07 BST 2008
Hi,
This patch fixes a bug in the v1 and v2 HPSS client code that causes the client
to consume 100% CPU indefinitely if a connection is lost while reading a body,
rather than aborting with an appropriate error.
(This bug was revealed by https://bugs.launchpad.net/bzr/+bug/236380, but is only
a secondary symptom, rather than a root cause. It could easily happen in other
circumstances though.)
Happily, the v3 code was already robust in this situation. I've added explicit
tests for all three protocol versions.
-Andrew.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interrupted-connection-fix-3465.patch
Type: text/x-diff
Size: 11873 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080602/bffbd642/attachment-0001.bin
More information about the bazaar
mailing list