Re: [PATCH v6 1/2] http-backend: respect CONTENT_LENGTH as specified by rfc3875
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 3, 2017, 06:07 UTC
- Message-ID
- <xmqq1skcjqer.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20171203024958.GA31493@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> ... 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.