On Sep 10, 2010, at 10:30 AM, David Borowitz wrote: > On Fri, Sep 10, 2010 at 05:51, Augie Fackler <[email protected]> wrote: > >> (-hg-git) >> On Sep 9, 2010, at 11:29 AM, David Borowitz wrote: >> >>> You know the dulwich client code as well as anyone here, Augie ;) >>> >>> http_proxy support is a good idea, but it's slightly nontrivial as you'd >> be >>> tunneling the git TCP protocol, not HTTP, through the HTTP proxy. I >> haven't >>> thought through how well that would work, but I'm sure other git people >>> have, and a quick search suggests that it's at least possible: >>> >> http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/ >> >> Ah, right. I just assumed this user wanted to use an http protocol. Even >> so, it's not all that hard to tunnel an arbitrary protocol through an http >> proxy - you issue the CONNECT verb and if the proxy server doesn't refuse >> (which it really *should* if it's not to port 443) you're golden and can >> treat it like a normal socket from there. > > > Well, the CONNECT is what makes it slightly nontrivial--but still probably > not a huge pain. The part I haven't thought through is what the > request/response nature of HTTP would do to the performance of git protocol > negotiation, which assumes a two-way stream.
Once you issue a CONNECT you seriously just treat it like a vanilla socket. > > >>> Another related feature that's been in the back of my mind for a while is >>> smart HTTP client support, where using a proxy should be more >>> straightforward :) >>> >>> On Thu, Sep 9, 2010 at 08:02, Jelmer Vernooij <[email protected]> wrote: >>> >>>> On Thu, 2010-09-09 at 09:42 -0500, Augie Fackler wrote: >>>>> (+dulwich-users) >>>>> >>>>> On Sep 9, 2010, at 4:15 AM, Frog Brave wrote: >>>>> >>>>>> I am trying to use hg-git to get access to some public git repos. hg >>>>>> clone command does not work (I get a message about the absence of an >>>>>> answer from the other host) and I suppose the problem is I am behind a >>>>>> proxy. >>>>>> >>>>>> I tried to set http_proxy environment variable and it still did not >>>>>> work. Is there any way to work with hg-git from behind a proxy? Can I >>>>>> somehow get better diagnostics from hg-git? >>>>> >>>>> I'm a little surprised that didn't work. Maybe the dulwich folks >>>>> (cc'ed) know? >>>>> >>>>> Jelmer, should I put together a patch to respect http_proxy, or should >>>>> it already work? >>>> dulwich doesn't have any specific proxy support at the moment, patches >>>> are more than welcome. >>>> >>>> Cheers, >>>> >>>> Jelmer >>>> >>>> _______________________________________________ >>>> Mailing list: https://launchpad.net/~dulwich-users >>>> Post to : [email protected] >>>> Unsubscribe : https://launchpad.net/~dulwich-users >>>> More help : https://help.launchpad.net/ListHelp >>>> >>>> >> >> _______________________________________________ Mailing list: https://launchpad.net/~dulwich-users Post to : [email protected] Unsubscribe : https://launchpad.net/~dulwich-users More help : https://help.launchpad.net/ListHelp

