#🔒 Strange Asyncio Server Problem

15 messages · Page 1 of 1 (latest)

tepid swallow
#

Hi there, I am facing an issue where I run an asyncio server on a port. The server runs well for a couple hours or sometimes less and it randomly stops receiving sockets completely. I have made logs of all exceptions to check if anything happens. Absolutely nothing unusual happens whatsoever.

It sometimes runs for hours sometimes it cant last more than an hour.
I will provide my logs and the code.

rotund fossilBOT
#

@tepid swallow

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.

tepid swallow
#

its just a repetition of this

worldly drum
#

what this?

plush rampart
#

@tepid swallow provide logs and code

tepid swallow
#

I did

#

Earlier

#

Okay wait

plush rampart
#

original message was deleted

tepid swallow
#

But like I don’t think it was an exception

#

It’s something with Asyncio

#

Is run_forever a function that needs to be called only once?

worldly drum
#

you launch asyncio apps with asyncio.run()

rotund fossilBOT
#
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.