aio-libs / aio-libs/aioftp

Deadlock upon calling `await client.abort()`

Open
#163 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
211
Forks
63
PR merge metrics
No merged PRs in 30d

Description

I'm trying to implement abort download as described in [Advanced download and upload, abort, restart](https://aioftp.readthedocs.io/client_tutorial.html#advanced-download-and-upload-abort-restart). Following the example, I find that `await client.abort()` deadlocks, but if my code first calls `stream.close()`, then it can call `await client.abort()` without deadlock. Are these two lines mixed up in the example?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.