Did this ever get filed as a bug or otherwise addressed? I can confirm the 
same behavior and discrepancies in the docs, and it's not clear how I'm 
supposed to correctly end my client reading of a 200 response (which just 
hangs with no end/error/close events).

On Tuesday, November 6, 2012 8:15:57 PM UTC-8, Tom wrote:
>
> I would like to add to the above that req/res.connection or req/res.socket 
> are not officially supported according to the docs (
> http://nodejs.org/api/all.html#all_class_http_clientrequest).
>
> Tom
>
> Op woensdag 7 november 2012 11:07:27 UTC+7 schreef Tom het volgende:
>>
>> That may work, but that does not resolve the situation.
>>
>> I would like to know when the WritableStream `res` (which it is) is no 
>> longer writable. The documentation stipulates that it should emit a `close` 
>> event, but it does not.
>>
>> This means that it's a bug by definition, right?
>>
>> Anyway, I do not know if the underlying socket actually closing also 
>> means that the response cannot be written to anymore at this exact point, 
>> or if the response was closed somewhat earlier already. Therefore I do not 
>> think it is appropriate to listen to the underlying socket: the higher 
>> level response may be unwritable earlier than that.
>>
>> Tom 
>>
>> Op woensdag 7 november 2012 03:03:05 UTC+7 schreef mscdex het volgende:
>>>
>>> On Nov 6, 11:01 am, Tom <[email protected]> wrote: 
>>> > I'm afraid that the `close` event does not emit either, as becomes 
>>> clear 
>>> > when hooking into the emit function as described earlier. 
>>> > 
>>> > Only `header` and `finish` emit. 
>>> > 
>>> > Why is this so? 
>>>
>>> What if you inspect events emitted on the underlying socket object 
>>> (req/res.socket or req/res.connection)? 
>>>
>>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to