Websocket-client connects to websocket-server through haproxy.
Sometimes transmission works, sometimes not.
Websocket-client is based on python2.6/site-packages/we
Websocket-server based on c++ library.
Haproxy version is 1.5.x
As you can see, websocket client reuses connection when python-script is reentered.
Note, if not to reuse the connection, there are no errors.
How get rid of this error?
#must we put here something to "flush" the "mysterios" ws "buffer"? ( See this comment in script )
Script, error-trace, haproxy.cfg and log are attached.