chrisguitarguy/Beanstalkc — pull request #2 by datariot (2014-01-31 03:48:27+00:00)
Title: Socket connections may not actually fill byte[]

Because of network latency, packet size, etc. the byte[] may not be filled on a single read() call for larger message sizes.

This while loop will ensure that the full message body is read.