You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hard killing a caller results in a callee traceback (on container components over rawsocket):
2019-03-02T16:34:36+0100 [Container 25923] Traceback (most recent call last):
File "/home/oberstet/scm/crossbario/autobahn-python/autobahn/wamp/websocket.py", line 95, in onMessage
self._session.onMessage(msg)
File "/home/oberstet/scm/crossbario/autobahn-python/autobahn/wamp/protocol.py", line 1027, in onMessage
raise ProtocolError("INTERRUPT received for non-pending invocation {0}".format(msg.request))
autobahn.wamp.exception.ProtocolError: INTERRUPT received for non-pending invocation 2601
2019-03-02T16:34:36+0100 [Container 25923] dropping connection to peer tcp4:127.0.0.1:8080 with abort=True: I dropped the WebSocket TCP connection: WAMP Protocol Error (INTERRUPT received for non-pending invocation 2601)
2019-03-02T16:34:36+0100 [Container 25923] session closed with reason wamp.close.transport_lost [WAMP transport was lost without closing the session before]
2019-03-02T16:34:36+0100 [Container 25923] Lost connection to component 'component001' uncleanly
2019-03-02T16:34:36+0100 [Container 25923] Container is hosting no more components: continue running in exit mode <shutdown-manual>
2019-03-02T16:34:36+0100 [Container 25935] Traceback (most recent call last):
File "/home/oberstet/scm/crossbario/autobahn-python/autobahn/wamp/websocket.py", line 95, in onMessage
self._session.onMessage(msg)
File "/home/oberstet/scm/crossbario/autobahn-python/autobahn/wamp/protocol.py", line 1027, in onMessage
raise ProtocolError("INTERRUPT received for non-pending invocation {0}".format(msg.request))
autobahn.wamp.exception.ProtocolError: INTERRUPT received for non-pending invocation 2602
2019-03-02T16:34:36+0100 [Container 25935] dropping connection to peer tcp4:127.0.0.1:8080 with abort=True: I dropped the WebSocket TCP connection: WAMP Protocol Error (INTERRUPT received for non-pending invocation 2602)
2019-03-02T16:34:36+0100 [Container 25935] session closed with reason wamp.close.transport_lost [WAMP transport was lost without closing the session before]
2019-03-02T16:34:36+0100 [Container 25935] Lost connection to component 'component002' uncleanly
2019-03-02T16:34:36+0100 [Container 25935] Container is hosting no more components: continue running in exit mode <shutdown-manual>
The text was updated successfully, but these errors were encountered:
I bumped into this with long blocking callees last week. If you cancel the call while the callee is blocking you are getting the ProtocolError as well.
Reproducer looks like this (sorry, still contains some bits of our testing infrastructure ...), sessions are running over websocket.
@pytest.mark.asyncioasyncdeftest_autobahn_issue_1127(event_loop, session):
"""reproducer for issue 1127 Seems like cancelling calls into blocking callees is causing ProtocolError Steps to reproduce - Start a session for the callee on a separate subprocess and registers a long blocking (time.sleep(long_time)) procedure. - call the long blocking procedure with a timeout << long_time """# start helper session with long blocking procedure, any long blocking procedure should do ...session_with_long_blocking_procedure=awaitcreate_subprocess_exec(
sys.executable,
_autobahn_issue1127.__file__
)
blocking_component_ready=event_loop.create_future()
session.subscribe(blocking_component_ready.set_result, 'autobahn.issue1127.long_blocking')
awaitblocking_component_ready# helper session is up and runningtry:
awaitwait_for(session.call('autobahn.issue1127.long_blocking'), 1) # impatient callerexceptTimeoutError:
pass# wait for the helper session to shut-down (exception is raised when the callee returns)awaitsession_with_long_blocking_procedure.wait()
hard killing a caller results in a callee traceback (on container components over rawsocket):
The text was updated successfully, but these errors were encountered: