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

Error occurring with communication problem to node, connection renewal would be useful #56

Closed
mate71pl opened this issue Aug 17, 2023 · 3 comments

Comments

@mate71pl
Copy link
Contributor

It would be useful to handle the error to renew the connection.

Exception in thread Thread-161: Traceback (most recent call last): File "/usr/lib/python3.11/[threading.py](http://threading.py/)", line 1038, in _bootstrap_inner [self.run](http://self.run/)() File "/usr/lib/python3.11/[threading.py](http://threading.py/)", line 1394, in run self.function(*self.args, **self.kwargs) File "/home/mate/meshtastic/meshtastic-matrix-relay/.pyenv/lib/python3.11/site-packages/meshtastic/mesh_[interface.py](http://interface.py/)", line 561, in callback self._sendToRadio(p) File "/home/mate/meshtastic/meshtastic-matrix-relay/.pyenv/lib/python3.11/site-packages/meshtastic/mesh_[interface.py](http://interface.py/)", line 619, in _sendToRadio self._sendToRadioImpl(toRadio) File "/home/mate/meshtastic/meshtastic-matrix-relay/.pyenv/lib/python3.11/site-packages/meshtastic/stream_[interface.py](http://interface.py/)", line 115, in _sendToRadioImpl self._writeBytes(header + b) File "/home/mate/meshtastic/meshtastic-matrix-relay/.pyenv/lib/python3.11/site-packages/meshtastic/tcp_[interface.py](http://interface.py/)", line 72, in _writeBytes self.socket.send(b) BrokenPipeError: [Errno 32] Broken pipe

@mate71pl
Copy link
Contributor Author

Screenshot_20230819_130548_JuiceSSH

@mate71pl
Copy link
Contributor Author

Strace output:
.... 13:06:58.740570 recvfrom(3, "", 1, 0, NULL, NULL) = 0 <0.000007> 13:06:58.740607 recvfrom(3, "", 1, 0, NULL, NULL) = 0 <0.000010> 13:06:58.740644 recvfrom(3, "", 1, 0, NULL, NULL) = 0 <0.000007> 13:06:58.740675 recvfrom(3, "", 1, 0, NULL, NULL) = 0 <0.000006> 13:06:58.740703 recvfrom(3, "", 1, 0, NULL, NULL) = 0 <0.000006> 13:06:58.740730 recvfrom(3, "", 1, 0, NULL, NULL) = 0 <0.000006> ....

@mate71pl
Copy link
Contributor Author

Now I see that it is more of a bug with the meshtastic client itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant