Skip to content

recv on httpcore/backends/sync.py raise BlockingIOError error when tcp keep alive enabled #599

Description

@CastagnaIT

I'm using httpx with http2 that use this module as dependency (python 3.9.14 embedded on android app)

in the past an httpx dev has suggest me to enable tcp keep alive in this way:
CastagnaIT/plugin.video.netflix@86e15b6
(i need it otherwise i receive always connection reset errors)
this has always work good but the httpx version was the 0.18.2 and relative depends like httpcore was 0.13.6

now i am updating httpx to last version 0.23.0, and this require httpcore 0.15.0
i have reapplied the tcp keep alive in httpcore as follows:
CastagnaIT/plugin.video.netflix@30f6f64

but the problem is that httpcore now always raise BlockingIOError error
where in the old version 0.13.6 not happens

full stack trace here: https://paste.kodi.tv/urozubekiv
stacktrace.txt

i have no idea how to fix this
seems that recent 0.14 rework may caused a kind of regression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions