We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 494ff21 commit e3a5ae4Copy full SHA for e3a5ae4
libraries/HTTPClient/src/HTTPClient.cpp
@@ -232,9 +232,7 @@ void HTTPClient::end(void)
232
if(connected()) {
233
if(_tcp->available() > 0) {
234
log_d("still data in buffer (%d), clean up.", _tcp->available());
235
- while(_tcp->available() > 0) {
236
- _tcp->read();
237
- }
+ _tcp->flush();
238
}
239
if(_reuse && _canReuse) {
240
log_d("tcp keep open for reuse");
0 commit comments