joyent/node — pull request #5268 by indutny (2013-04-10 10:24:07+00:00)
Title: net: fix socket.bytesWritten Buffers support

Buffer.byteLength() works only for string inputs. Thus, when connection
has pending Buffer to write, it should just use it's length instead of
throwing exception.

/cc @isaacs @bnoordhuis @piscisaureus