THRIFT-604: rb: nonblocking_server assumes that socket.read returns exactly one message This patch causes every message currently in the buffer to be processed before going on.