http: write() after end() emits an error.
authorJulien Gilli <julien.gilli@joyent.com>
Tue, 23 Sep 2014 00:21:40 +0000 (17:21 -0700)
committerFedor Indutny <fedor@indutny.com>
Tue, 23 Sep 2014 07:54:26 +0000 (11:54 +0400)
commit64d6de9f34abe63bf7602ab0b55ff268cf480e45
tree77de887ac1369a1e5323d77df1c399c6cfe8deaf
parent4c9b30db675ba3094a733e2691e968b658105334
http: write() after end() emits an error.

When calling write() after end() has been called on an OutgoingMessage,
an error is emitted and the write's callback is called with an instance
of Error.

Fix #7477.

Reviewed-By: Fedor Indutny <fedor@indutny.com>
lib/_http_outgoing.js
test/simple/test-http-res-write-after-end.js [new file with mode: 0644]