Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/crawlee/http_clients/_impit.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,6 @@ async def stream(
try:
yield _ImpitResponse(response)
finally:
# TODO: https://github.com/apify/impit/issues/242
# Quickly closing Response while reading the response body causes an error in the Rust generator in `impit`.
# With a short sleep and sync closing, the error does not occur.
# Replace with `response.aclose` when this is resolved in impit.
await asyncio.sleep(0.01)
response.close()

def _get_client(self, proxy_url: str | None, cookie_jar: CookieJar | None) -> AsyncClient:
Expand Down
Loading