postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.69k stars 357 forks source link

Handle socket.write return value. #280

Closed avuori closed 8 years ago

avuori commented 10 years ago

The method socket.write can return false and in that case the amqp client messes up the shared buffer. We can just allocate a new buffer when that happens.

gjohnson commented 10 years ago

Should add a test to make sure it buffers as are you are expecting. Also, looks like you accidentally committed your package.json