From 7a2c428973d5b4c3d2982b0643e31a384e5479ff Mon Sep 17 00:00:00 2001 From: brianc Date: Wed, 30 May 2012 22:41:51 -0500 Subject: [PATCH] ignore writes to unwritable sockets - closes #130 --- lib/connection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/connection.js b/lib/connection.js index 6d9f11f..140cbf3 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -96,6 +96,7 @@ p.password = function(password) { }; p._send = function(code, more) { + if(!this.stream.writable) return false; if(more === true) { this.writer.addHeader(code); } else {