AW: [PATCH v6 1/2] http-backend: respect CONTENT_LENGTH as specified by rfc3875
- From
- Florian Manschwetus <manschwetus@cs-software-gmbh.de>
- Date
- Dec 4, 2017, 07:18 UTC
- Message-ID
- <F0F5A56A22F20D4CB4A03BB8D66587970253F87B86@SERVER2011.CS-SOFTWARE.local>
- In-Reply-To
- <xmqq1skcjqer.fsf@gitster.mtv.corp.google.com>
Hi All, I could provide a bash script I used in between to make this working with IIS, without fixing http-backend binary, maybe this helps to understand how this cases might be handled.
Mit freundlichen Grüßen / With kind regards Florian Manschwetus
Show 20 quoted lines
> -----Ursprüngliche Nachricht----- > Von: Junio C Hamano [mailto:gitster@pobox.com] > Gesendet: Sonntag, 3. Dezember 2017 07:07 > An: Jeff King > Cc: Max Kirillov; Eric Sunshine; Florian Manschwetus; Chris Packham; > Konstantin Khomoutov; git@vger.kernel.org > Betreff: Re: [PATCH v6 1/2] http-backend: respect CONTENT_LENGTH as > specified by rfc3875 > > Jeff King <peff@peff.net> writes: > > > ... Eventually our fill() will block trying to get data that is not > > there. On an Apache server, the webserver would know there is nothing > > left to send us and close() the pipe, and we'd get EOF. > > But on IIS, I think the pipe remains open and we'd just block > > indefinitely trying to read(). > > Ah, yeah, under that scenario, trusting content-length and trying to read, > waiting for input that would never come, will be a problem, and it would > probably want to get documented.