Changed way of socket reading 

This two commits prevent socket read server stalling (tested on Bailador example app.pl under Windows 7 64bit)

fixes #7 ?