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

IO handler shutdown hangs tasks #32

Open
winrg opened this issue Mar 28, 2023 · 1 comment
Open

IO handler shutdown hangs tasks #32

winrg opened this issue Mar 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@winrg
Copy link
Contributor

winrg commented Mar 28, 2023

Describe the bug
Alright, I've figured it out! This bug specifically occurs when anything .awaits a Discord request, and the IO handler restarts for whatever reason. The awaits hang perpetually.

To Reproduce
Steps to reproduce the behavior:

  1. Write some code which does the following:
    1. Connects to discord
    2. Sends a periodical request of some kind, I've been using activity updates.
    3. Make sure it logs when it does, or in some way shows that it's running
  2. Run it with Discord open
  3. Kill discord and reopen it
  4. Note how the logging suddenly pauses

Expected behavior
For an error to be returned, or, ideally, the request to be transparently resent in some way.

Device:
ArchLinux, kernel 6.1.19, rustc 1.66.0-nightly

@winrg winrg added the bug Something isn't working label Mar 28, 2023
@winrg winrg changed the title Disconnects silently kill the IO handler IO handler shutdown hangs tasks Mar 28, 2023
@Jake-Shadle
Copy link
Member

I don't have time to work on this atm but I agree it's an issue. Would accept a PR to fix/improve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants