Open pomelocorp opened 8 years ago
This site here: http://www.pyopenssl.org/en/stable/api/ssl.html
Says that WantReadError pretty much means that you should retry later, so your second solution is correct.
ws4py didn't used to have anything about pyOpenSSL, and I've never encountered this error in older versions, so another possibility would be to go back to using the builtin ssl module by default and falling back as needed to pyOpenSSL?
Hello,
I started from the droid_cherrypy_server.py example, and I am using SSL. For some reason, the server goes into WantReadError.
The issue appears only with Websocket over SSL.
----- UPDATE (28.11.2016)
To summarize:
WANT_READ_ERROR appears when:
THE SPECIFIC ERROR STACK TRACE (on the server running droid.py) LOOKS LIKE THIS (at the moment when the large message is sent / or subsequent message is sent in a row):
ATTEMPT 1 (failed):
ATTEMPT 2 (semi-successful): I updated the code for websocket.py to simply let the OpenSSLError pass:
With this code, everything works fine (the messages are received and read by the server). However, this is an ugly solution as the issue persists: the error is thrown a couple of times before the message is actually read (cherrypy.log in the except (pyOpenSSLError) indicates a series of errors thrown before the message is finally read).
Does anyone have an idea what is happening and how it resolved or could you please at least point me in the right direction?
Thank you in advance.