tests/svgui/beremiz.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 13 Mar 2019 15:43:45 +0300
changeset 2543 2befed4d6ca8
parent 2231 7d87a0f98345
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)
2231
7d87a0f98345 Explicitly enable required libraries in test projects
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 411
diff changeset
     1
<?xml version='1.0' encoding='utf-8'?>
411
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents:
diff changeset
     2
<BeremizRoot URI_location="LOCAL://">
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents:
diff changeset
     3
  <TargetType/>
2231
7d87a0f98345 Explicitly enable required libraries in test projects
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 411
diff changeset
     4
  <Libraries Enable_SVGUI_Library="true" Enable_Python_Library="true"/>
411
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents:
diff changeset
     5
</BeremizRoot>