bzr.dev <-> bzr.dev network api break

Robert Collins robertc at robertcollins.net
Mon Jan 21 11:25:36 GMT 2008


On Mon, 2008-01-21 at 20:47 +1100, Andrew Bennetts wrote:
> 
> So, I think we should:
> 
>   * create a protocol version 3 that can cope with this situation
> safely, and
>   * teach the client to fallback to methods that don't require sending
> request
>     bodies if the protocol version < 3.

I think that the second point is a bit bogus; the client should try its
best method, with the best protocol version it knows.

It will get one of:
 protocol unknown
 method unknown

If it gets protocol unknown, it has to:
 - drop the session
 - start a new session with a lower protocol version

If it gets method unknown, it has to:
 - if the method was sending a body:
   - check if the protocol handles that cleanly:
     - if not drop the session
 - retry with an older method

-Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080121/04cc7399/attachment-0001.pgp 


More information about the bazaar mailing list