Set stream (socket) blocking mode

Solve https://github.com/hoaproject/Websocket/issues/9.