sta/websocket-sharp — pull request #6 by shawnliang (2012-08-29 04:19:46+00:00)
Title: Fix non-blocking socket operation exception on .net 3.5 win 7

(This is my first pull request. Please educate me if this request is not good.)

This pull request contains 3 major changes

1. If user binds web socket server on 0.0.0.0, don't check if "HOST" header matches local ip address because use just want to bind on "any" address.

2. Port the solution file and project file to vs2011.

3. On .net 3.5 win 7, calling NetworkStream.Read() often throw this exception: a non-blocking socket operation could not be completed immediately. I tried set TCPClient.Client.blocking = true and TCPClient.ReceiveTimeout = xxx but both failed. So I use Stream.BeginRead() + EndRead() to solve it.

Please kindl