amir/raidman — pull request #1 by swdunlop (2013-07-07 21:37:41+00:00)
Title: ensure tcp.Send will read long messages fully

TCP connections may not complete a read request if it exceeds the available data, resulting in short reads that confuse pb.Unmarshal with a long tail of null bytes:

!! proto: illegal tag 0

This pull request reads in a loop until the response is complete or an error is presented. You might also want to place a license in you repo -- I release the enclosed commits to the public domain. Thanks for the package, @amir. :)