Skip to content

Setting a timeout causes assertion failures in httpclient #2753

@dom96

Description

@dom96
import httpclient

echo getContent("https://gitlab.3dicc.com/gokr/lapp", timeout=400)
Traceback (most recent call last)
a21.nim(3)               a21
httpclient.nim(491)      getContent
httpclient.nim(472)      get
httpclient.nim(445)      request
httpclient.nim(435)      request
httpclient.nim(245)      parseResponse
httpclient.nim(170)      parseBody
httpclient.nim(160)      parseChunks
net.nim(714)             recv
system.nim(3058)         failedAssertImpl
system.nim(2280)         raiseAssert
Error: unhandled exception: avail <= size - read  [AssertionError]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions