Skip to content

Commit 7a2c428

Browse files
committed
ignore writes to unwritable sockets - closes #130
1 parent 66ea024 commit 7a2c428

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/connection.js

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ p.password = function(password) {
9696
};
9797

9898
p._send = function(code, more) {
99+
if(!this.stream.writable) return false;
99100
if(more === true) {
100101
this.writer.addHeader(code);
101102
} else {

0 commit comments

Comments
 (0)