z25 / pyZOCP

Python ZOCP implementation (Z25 Orchestration Control Protocol)
GNU Lesser General Public License v3.0
33 stars 5 forks source link

[Regression] ZOCP does not close down cleanly #57

Closed fieldOfView closed 9 years ago

fieldOfView commented 9 years ago

Since the "refactor of ZBeacon to ZActor class" in Pyre (https://github.com/zeromq/pyre/commit/1a1b1b0042804ee3dc7183043d3e39c3a67a137c), closing the ZOCP node in the Node Editor (and possibly other examples) results in an error.

Traceback (most recent call last):
  File "zne.py", line 243, in onZOCPEvent
    self.zocp.run_once(0)
  File "/home/aldo/Documents/z25/pyZOCP/src/zocp.py", line 792, in run_once
    self.get_message()
  File "/home/aldo/Documents/z25/pyZOCP/src/zocp.py", line 538, in get_message
    peer = uuid.UUID(bytes=msg.pop(0))
  File "/usr/lib/python3.4/uuid.py", line 148, in __init__
    raise ValueError('bytes is not a 16-char string')
fieldOfView commented 9 years ago

It looks like the STOP message adds a peer id as a hex string as opposed to a 16-char string, so this is probably a Pyre bug.