You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized that after the last commit (ClientContext (tcp) updates (#5089)), my Webserver was very slow while sending big files.
I looked at the changes and it seems that ClientContext::_write_some() causes the problem.
My suspicion is, that the if-condition in line 510 should be reverted so that tcp_output is always called.
If I set WiFiClient::setDefaultNoDelay(true) at the beginning of my program, it works.
Possible solution: ClientContext::_write_some (line 510):
Change
if (has_written && (_sync || tcp_nagle_disabled(_pcb))) {
...
tcp_output(_pcb);
}
to
if (has_written) {
...
tcp_output(_pcb);
}
Testcode:
Compile and visit IP address in webbrowser. Toggle variable NO_DELAY to see effect.
Hi!
I realized that after the last commit (ClientContext (tcp) updates (#5089)), my Webserver was very slow while sending big files.
I looked at the changes and it seems that
ClientContext::_write_some()
causes the problem.My suspicion is, that the if-condition in line 510 should be reverted so that
tcp_output
is always called.If I set
WiFiClient::setDefaultNoDelay(true)
at the beginning of my program, it works.Possible solution:
ClientContext::_write_some (line 510):
Change
to
Testcode:
Compile and visit IP address in webbrowser.
Toggle variable NO_DELAY to see effect.
Debug Messages
The text was updated successfully, but these errors were encountered: