[issue41597] Fatal Error on SSL Transport - sslv3 alert bad record mac

2020-08-24 Thread Mototsugu Emori
Mototsugu Emori added the comment: Thank you for your reply. I understand that websocket cannot be used in multiple threads. I close the issue. -- stage: -> resolved status: open -> closed ___ Python tracker __

[issue41597] Fatal Error on SSL Transport - sslv3 alert bad record mac

2020-08-20 Thread Aymeric Augustin
Aymeric Augustin added the comment: websockets doesn't use threads (except where asyncio uses them under the hood e.g. for resolving addresses). Perhaps the OP's code passes asyncio connections (wrapped in websocket connections) unsafely across threads. -- nosy: +aymeric.augustin _

[issue41597] Fatal Error on SSL Transport - sslv3 alert bad record mac

2020-08-20 Thread Christian Heimes
Christian Heimes added the comment: This looks like a bug in the websocket package. You cannot share an SSLSocket across threads safely without locking. I/O operations on a shared resource (file, socket, SSLSocket) are generally not thread safe. Locking has to be implemented in the layer tha

[issue41597] Fatal Error on SSL Transport - sslv3 alert bad record mac

2020-08-20 Thread Mototsugu Emori
New submission from Mototsugu Emori : When using SSL with websocket, I get an SSLError. --- [2020-08-17 15:02:51,078] websockets.protocol : Error in data transfer [MainProcess - MainThread] Traceback (most recent call last): File "/