mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-01 13:00:59 +02:00
flush tcp buffer instead of reading it byte by byte.
This commit is contained in:
@ -232,9 +232,7 @@ void HTTPClient::end(void)
|
||||
if(connected()) {
|
||||
if(_tcp->available() > 0) {
|
||||
log_d("still data in buffer (%d), clean up.", _tcp->available());
|
||||
while(_tcp->available() > 0) {
|
||||
_tcp->read();
|
||||
}
|
||||
_tcp->flush();
|
||||
}
|
||||
if(_reuse && _canReuse) {
|
||||
log_d("tcp keep open for reuse");
|
||||
|
Reference in New Issue
Block a user