Read from socket until less than size of body.
Merge pull request #2 from Surgo/master

Read from socket until less than size of body.