Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROSTransportでSubscriber側のRTCが異常終了すると、Publisher側のRTCがエラー状態になる問題 #304

Merged
merged 2 commits into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions OpenRTM_aist/ext/transport/ROSTransport/ROSOutPort.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,15 @@ def put(self, data):
connector.sendall(data)
except BaseException:
self._rtcout.RTC_ERROR("send error")
self._topicmgr.removeSubscriberLink(connector.getConnection())
try:
self._topicmgr.removeSubscriberLink(connector.getConnection())
except OSError as e:
self._rtcout.RTC_ERROR(e)


# connector.shutdown(socket.SHUT_RDWR)

ret = self.CONNECTION_LOST
#ret = self.CONNECTION_LOST
self._tcp_connecters.remove(connector)
return ret

Expand Down