#๐Ÿ”’ TCP script halting

14 messages ยท Page 1 of 1 (latest)

somber kelpBOT
#

@echo timber

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

echo timber
#

While running the client script (control.py) on my laptop and the server script (controlpi.py) on my raspberry pi it after a while suddenly halts and the programs just freeze. There is no specific action that triggers this but time itself. They dont stop at a specific time but a random one.
https://paste.pythondiscord.com/2UOA

#

Why does this happen and how do I fix it?

leaden narwhal
#

its a assembly issue

#

i think it happens with my rasp pi quite often which one do u have

pallid walrus
#

chance are that it's the same thing every time it stops

#

i would strace the programs on both computer (if they are both running any kind of linux, don't know what you have on your laptop)

leaden narwhal
pallid walrus
#

i think it will be stopping on either recv() or a send() on one of the sides seeing how the code for the socket handling is written

#

one example could be if both gets stuck on recv waiting for the other to send something

#

as i don't see any non-blocking io, select, asyncio, threading, multiprocessing or any typ of concurrency really

#

strace is even overkill here since it's python the standard python debugger should do the job even better

somber kelpBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.