Skip to content
Browse files

Add a trace so we can track down where the empty response occurred in…

… our applications.


As seeing this

    26 Apr 21:38:06 - Client 9508768464438617 connected
    26 Apr 21:43:24 - Initializing client with transport "websocket"
    26 Apr 21:43:24 - Client 8368203134741634 connected
    This type of response MUST NOT have a body. Ignoring write() calls.
    This type of response MUST NOT have a body. Ignoring write() calls.
    26 Apr 21:45:08 - Initializing client with transport "websocket"

in your log doesn't really help.
  • Loading branch information...
1 parent a2328dc commit cdb342f1f961f969f8495e7ff2894ad177316e11 @3rd-Eden committed Apr 26, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/http.js
View
1 lib/http.js
@@ -591,6 +591,7 @@ OutgoingMessage.prototype.write = function(chunk, encoding) {
}
if (!this._hasBody) {
+ console.trace();
console.error('This type of response MUST NOT have a body. ' +
'Ignoring write() calls.');
return true;

0 comments on commit cdb342f

Please sign in to comment.
Something went wrong with that request. Please try again.