-
Notifications
You must be signed in to change notification settings - Fork 55
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
Deadlock upon calling await client.abort()
#163
Comments
How your code looks like? Did you read the warning part? https://aioftp.readthedocs.io/client_tutorial.html#id2 |
Yes, I read the warning and tried to follow it. Here is my code, which is working now that it calls
|
Can you provide some log messages? So I can release where stuck is. |
Hmm, I rewrote the code as follows and it gives me almost no problems:
This code always exits, never deadlocks. If |
But issue exists. Maybe you can replicate the issue and provide some logs. Since I still have no clue about reasons for such behavior. |
I'm trying to implement abort download as described in Advanced download and upload, abort, restart. Following the example, I find that
await client.abort()
deadlocks, but if my code first callsstream.close()
, then it can callawait client.abort()
without deadlock. Are these two lines mixed up in the example?The text was updated successfully, but these errors were encountered: