c_ext/README
author |
Andrey Skvortsov <andrej.skvortzov@gmail.com> |
|
Wed, 13 Mar 2019 15:43:45 +0300 |
changeset 2543 |
2befed4d6ca8 |
parent 721 |
ecf4d203c4d4
|
permissions |
-rw-r--r-- |
Fix Pyro work with SSL wrapper (sslpsk)
Following error was shown in Beremiz console:
PYRO connecting to URI : PYROS://127.0.0.1:3001#beremiz
Exception while connecting to 'PYROS://127.0.0.1:3001#beremiz': non-zero flags not allowed in calls to recv() on <class 'ssl.SSLSocket'>
Connection failed to PYROS://127.0.0.1:3001#beremiz!
Reason is that Pyro calls socket recv() with MSGWAITALL flag, that causes ValueError exception.
https://docs.python.org/2/library/ssl.html
recv(), recv_into() (but passing a non-zero flags argument is not allowed)