Lawouach/WebSocket-for-Python — pull request #136 by shaxbee (2014-07-03 15:27:09+00:00)
Title: Fix for concurrent socket access in WebSocket

When trying to use WebSocket.send() method from other thread concurrent socket access might occur (and sure it does) causing random crashes.

Synchronization is guaranteed by applying recursive lock on send() and once() methods.

Passes tests on CPython 2.7.