Comment 3 for bug 1807226

Revision history for this message
sdaau (sd-imi) wrote :

Same thing happens with:

bzr branch https://code.launchpad.net/~indicator-applet-developers/libappindicator/trunk.16.10
bzr branch lp:libappindicator

Here is a discussion:

* https://stackoverflow.com/questions/14149100/incompleteread-using-httplib

If I add the monkeypatch code suggested there, in /usr/lib/python2.7/dist-packages/bzrlib/transport/http/response.py

```
...
import httplib

def patch_http_response_read(func):
    def inner(*args):
        try:
            return func(*args)
        except httplib.IncompleteRead, e:
            return e.partial

    return inner

httplib.HTTPResponse.read = patch_http_response_read(httplib.HTTPResponse.read)

from cStringIO import StringIO
...
```

... then a different error occurs:

```
$ bzr branch lp:libappindicator
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: The remote server unexpectedly closed the connection.
```

If instead I apply the other suggestion:

```
...
import httplib

httplib.HTTPConnection._http_vsn = 10
httplib.HTTPConnection._http_vsn_str = 'HTTP/1.0'

from cStringIO import StringIO
...
```

... same thing:

```
$ bzr branch lp:libappindicator
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: The remote server unexpectedly closed the connection.
```

Given that `bzr` is sponsored by Canonical, and this is a failure where `bzr` fails to connect to Launchpad, which is also sponsored by Canonical, I guess it's worth asking: is the `bzr` project still alive, or should it be considered abandonware?