Closed
Description
Version
latest master (checkout manually)
Description
Lately there have been issues with handling multiple requests to the webserver shortly after eachother.
For example loading CSS as a separate call or handling a GET and then a POST or when authenticating using a script.
It appears _sse
is not always initialized in NetworkClient
:
arduino-esp32/libraries/Network/src/NetworkClient.cpp
Lines 184 to 189 in 6005b15
And the declaration of the members (without initialization):
arduino-esp32/libraries/Network/src/NetworkClient.h
Lines 36 to 44 in 6005b15
Suggested fix:
in NetworkClient.h:
class NetworkClient : public ESPLwIPClient {
protected:
std::shared_ptr<NetworkClientSocketHandle> clientSocketHandle = nullptr;
std::shared_ptr<NetworkClientRxBuffer> _rxBuffer = nullptr;
bool _connected = false;
bool _sse = false;
int _timeout;
int _lastWriteTimeout = 0;
int _lastReadTimeout = 0;
Not only _sse
is not always initialized, there are other members too.
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.