[PATCH 1 of 1] sshserver: add varargs capability

Dirkjan Ochtman dirkjan at ochtman.nl
Tue Feb 9 06:07:11 CST 2010


On Tue, Feb 9, 2010 at 12:56, Sune Foldager <cryo at cyanite.org> wrote:
> I guess we can :-p. That's a bigger change to the protocol; we also send
> binary data, so we would only want to use JSON for argument data, I presume.
>
> I suppose we could structure it like this:
>
> commandname#argument-payload-size \n
> <JSON argument payload>
> [binary data, if applicable]
>
> Or did you have something different in mind?

Benoit, in IRC, floated the idea of using HTTP over the SSH protocol,
which seems like a neat solution to me. We could use some of the HTTP
headers as needed (Content-Type, Content-Length, put the caps in a
header) and use those to make the ssh protocol much more similar to
the HTTP protocol.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list