Skip to content

getString() timeouts when the response is empty (return code 204) #6919

Open
@Cadence-GitHub

Description

@Cadence-GitHub

When an empty HTTP response is received with response code 204 (which is a valid response), the getString() call will wait for data until it timeouts. Instead, it should figure out from the response code that there is no data to be received, and should not wait unnecessarily.

A real life example of his this can affect legitimate traffic can be seen here:
tobiasschuerg/InfluxDB-Client-for-Arduino#25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions