flush tcp buffer instead of reading it byte by byte.
This commit is contained in:
parent
494ff217aa
commit
e3a5ae439b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user