On 06/05/2012 08:31 PM, Junio C Hamano wrote:
How does this compare with the smart-http support that tunnels the git protocol over http (with some butchering)?
To be honest, I didn't know smart-http support yet. Is that the approach introduced with git 1.6.6?
If so, that approach uses multiple POST requests, meaning multiple TCP and HTTP connections need to be established, multiple requests processed, etc.
The WebSocket approach uses a single HTTP connection which gets upgraded to a WebSocket. This WebSocket then allows the same communication to happen as with the ssh implementation.
So in comparison there is possibly a lot less overhead and, in theory, the performance should be comparable to running the smart protocol over ssh. Personally I'd say the WebSocket approach is cleaner than the HTTP-POST approach.
-- Stephan -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html