Skip to content

Timeout in client_net_recv_timeout forces unneeded delays? #59

@Bascy

Description

@Bascy

We are downloading a firmware binary file (2Mb) from a google cloud bucket using https.
When we set the timeout of SSLClient to 1000ms (to prevent timeouts when using slower servers) some calls to client_net_recv_timeout wait at least the 1000ms before continuing to read the available data. If we set the timeout to 10ms the whole process will go much faster because it won't wait for 1000 ms every time. See screenshots below.

It looks like the amount that is returned by client->available() is not correct somehow, which will cause the wait for the timeout to expire before the read is executed, and the full number of expected bytes is read.

Any idea what is going wrong here?

With timeout of 1000ms
image

With timeout of 10ms
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions