http_server: `prefinish` vs `finish`
authorFedor Indutny <fedor@indutny.com>
Mon, 13 Apr 2015 14:31:57 +0000 (16:31 +0200)
committerRod Vagg <rod@vagg.org>
Tue, 4 Aug 2015 18:56:12 +0000 (11:56 -0700)
commit11e42492278ed5d4a47f823ff6c577783eec672a
treeea73b5a767ed0baa5662a8c5484916cf028cd51f
parentef2c8cd4ece424bf02048921b6709da411301c59
http_server: `prefinish` vs `finish`

Do not detach the socket from the response until all data is actually
sent to the other side.

See: https://github.com/iojs/io.js/pull/1373
PR-URL: https://github.com/nodejs/io.js/pull/1411
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
lib/_http_server.js