Skip to content

Bad HTTP response - solved with old trick but should have been resolved #11506

Open
@Bms7

Description

@Bms7

Hello,
same problem with ESP32 Dev Arduino IDE 2.3.6 and commenting out

#define ROE_WIFICLIENT(x, msg)
{
if (((x) < 0)) {
log_e("Setsockopt '" msg "'' on fd %d failed. errno: %d, "%s"", sockfd, errno, strerror(errno));
return 0;
}
}
ROE_WIFICLIENT(setsockopt(sockfd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)), "SO_SNDTIMEO");
ROE_WIFICLIENT(setsockopt(sockfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)), "SO_RCVTIMEO");

did the trick.

But the file was
,.arduino15\packages\esp32\hardware\esp32\2.0.17\libraries\WiFi\src\WiFiClient.cpp
in line 280

Thanks

Originally posted by @Bms7 in #11375

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