http: Add fixme comment about ECONNRESET handling

pull/24504/head
isaacs 2013-02-18 10:38:37 -08:00
parent d75e39794b
commit 09b1212254
1 changed files with 2 additions and 0 deletions

View File

@ -493,6 +493,8 @@ OutgoingMessage.prototype._writeRaw = function(data, encoding) {
// The socket was destroyed. If we're still trying to write to it,
// then something bad happened.
// If we've already raised an error on this message, then just ignore.
// XXX This was necessary in v0.8, but in v0.10, we no longer ignore
// ECONNRESET anyway. Is this still required?
if (!this._hadError) {
this.emit('error', createHangUpError());
this._hadError = true;