targets/Linux/XSD
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 13 Mar 2019 15:43:45 +0300
changeset 2543 2befed4d6ca8
parent 204 f572ab819769
child 3732 929276eea252
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)
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     1
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     2
                  <xsd:element name="Linux">
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     3
                    <xsd:complexType>
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     4
                      %(toolchain_gcc)s
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     5
                    </xsd:complexType>
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     6
                  </xsd:element>