{"thread":{"id":"56695","subject":"Commit ae1a7eefff may have broken git behind a firewall","startedAt":"2021-10-12T21:04:17Z","lastAt":"2021-10-12T21:41:58Z","messageCount":3,"participants":["H.J. Lu","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"438595","messageId":"CAMe9rOrononRUYK0HmW_tknApUV+ZJeDBwOYMa1Ax-VHXZmoJQ@mail.gmail.com","threadId":"56695","inReplyTo":null,"subject":"Commit ae1a7eefff may have broken git behind a firewall","fromName":"H.J. Lu","fromEmail":"hjl.tools@gmail.com","sentAt":"2021-10-12T21:03:39Z","receivedAt":"2021-10-12T21:04:17Z","isPatch":false,"sender":{"key":"hjl.tools@gmail.com","avatar":null},"body":"https://github.com/git/git/commit/ae1a7eefff\n\nmay have broken git behind a firewall:\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=2013288\n\nI am behind a firewall and using gitproxy:\n\nexec socat - socks4:proxy-server-name:$1:$2\n\nI got\n\n$ git clone git://gcc.gnu.org/git/gcc.git\nCloning into 'gcc'...\nfetch-pack: unexpected disconnect while reading sideband packet\nfatal: early EOF\nfatal: fetch-pack: invalid index-pack output\n$\n\nBoth\n\n$ git clone --depth 1 git://gcc.gnu.org/git/gcc.git\n\nand\n\n$ git clone https://gcc.gnu.org/git/gcc.git\n\nwork.\n\n$ git -c protocol.version=1 clone git://gcc.gnu.org/git/gcc.git\n\nalso works.\n\n-- \nH.J.\n"},{"id":"438598","messageId":"YWX7cd5e5q84CDEv@coredump.intra.peff.net","threadId":"56695","inReplyTo":"CAMe9rOrononRUYK0HmW_tknApUV+ZJeDBwOYMa1Ax-VHXZmoJQ@mail.gmail.com","subject":"Re: Commit ae1a7eefff may have broken git behind a firewall","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2021-10-12T21:17:37Z","receivedAt":"2021-10-12T21:17:40Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Oct 12, 2021 at 02:03:39PM -0700, H.J. Lu wrote:\n\n> https://github.com/git/git/commit/ae1a7eefff\n> \n> may have broken git behind a firewall:\n> \n> https://bugzilla.redhat.com/show_bug.cgi?id=2013288\n> \n> I am behind a firewall and using gitproxy:\n> \n> exec socat - socks4:proxy-server-name:$1:$2\n\nIt's not the firewall; it's socat not handling half-duplex shutdown very\nwell (though you are right that it is related to the commit you found;\nthat's when Git started closing the write pipe when it's done writing).\n\nMore discussion in this thread:\n\n  https://lore.kernel.org/git/YS1Bni+QuZBOgkUI@coredump.intra.peff.net/\n\n(the short answer is: use \"socat -t 10\").\n\n-Peff\n"},{"id":"438602","messageId":"CAMe9rOqQxk3cfxvJiJQRoG5=KVn2SkPbZKVa+w4MZP56OA-Z1g@mail.gmail.com","threadId":"56695","inReplyTo":"YWX7cd5e5q84CDEv@coredump.intra.peff.net","subject":"Re: Commit ae1a7eefff may have broken git behind a firewall","fromName":"H.J. Lu","fromEmail":"hjl.tools@gmail.com","sentAt":"2021-10-12T21:41:20Z","receivedAt":"2021-10-12T21:41:58Z","isPatch":false,"sender":{"key":"hjl.tools@gmail.com","avatar":null},"body":"On Tue, Oct 12, 2021 at 2:17 PM Jeff King <peff@peff.net> wrote:\n>\n> On Tue, Oct 12, 2021 at 02:03:39PM -0700, H.J. Lu wrote:\n>\n> > https://github.com/git/git/commit/ae1a7eefff\n> >\n> > may have broken git behind a firewall:\n> >\n> > https://bugzilla.redhat.com/show_bug.cgi?id=2013288\n> >\n> > I am behind a firewall and using gitproxy:\n> >\n> > exec socat - socks4:proxy-server-name:$1:$2\n>\n> It's not the firewall; it's socat not handling half-duplex shutdown very\n> well (though you are right that it is related to the commit you found;\n> that's when Git started closing the write pipe when it's done writing).\n>\n> More discussion in this thread:\n>\n>   https://lore.kernel.org/git/YS1Bni+QuZBOgkUI@coredump.intra.peff.net/\n>\n> (the short answer is: use \"socat -t 10\").\n>\n> -Peff\n\nYes, \"socat -t 10\" works.\n\nThanks.\n\n-- \nH.J.\n"}]}