Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpServer tuning to allow serving of more requests. #1187

Merged
merged 2 commits into from
Jul 17, 2017

Conversation

slaff
Copy link
Contributor

@slaff slaff commented Jul 13, 2017

  • Workaround for issue with incorrect size of files (Disadvantages: The loading process looks slower because the browser waits for the TIMEOUT in order to determine the size)

  • TcpClient: Added reporting for condition that shouldn't happen and is not handled optimally.

  • TcpServer: Decreased the minimum required heap size.

  • LWIP: Decreased the TCP_MSL to 2 seconds. That will lead to faster garbage collection of tcp connections in TIME_WAIT state and will release resources faster.

@slaff
Copy link
Contributor Author

slaff commented Jul 13, 2017

@piperpilot Can you try this branch with your shiny new esp-open-sdk compiler and your project? On my test project the results seem quite promising.

…he loading process looks slower because the browser waits for the TIMEOUT in order to determine the size)

- TcpClient: Added reporting for condition that shouldn't happen and is still not handled correctly at the moment.
- TcpServer: Decreased the minimum required heap size.
- LWIP: Decreased the TCP_MSL to 2 seconds. That will lead to faster garbage collection of tcp connections in TIME_WAIT state and will release resources faster.
@slaff slaff force-pushed the tuning/http-server branch 2 times, most recently from e400eb7 to 36fc121 Compare July 17, 2017 20:01
@slaff slaff force-pushed the tuning/http-server branch from 36fc121 to 368f721 Compare July 17, 2017 20:07
@slaff slaff added this to the 3.3.0 milestone Jul 17, 2017
@slaff slaff merged commit 8fe2d3a into SmingHub:develop Jul 17, 2017
johndoe8967 added a commit to johndoe8967/Sming that referenced this pull request Jul 21, 2017
* commit 'f4c2d01834a49b10ae0d374d7feeeab38f197d95':
  Handle incomplete frame to prevent WebsocketClient ending in an endless loop (SmingHub#1189)
  Fixes for styling issues reported by Codacy (SmingHub#1196)
  Feature/httpserver etag caching (SmingHub#1194)
  HttpServer tuning to allow serving of more requests. (SmingHub#1187)
  decode-stacktrace.py: Added python3 compatability. (SmingHub#1190)
  Release Candidate 1 for version 3.3.0. (SmingHub#1185)
  Station::waitConnection method was deprecated and is now removed. (SmingHub#1171)
  Adding fixes for issues reported by Vera++ and CppCheck. (SmingHub#1178)
  Changes related to POST parameter unescaping. (SmingHub#1177)
johndoe8967 added a commit to johndoe8967/Sming that referenced this pull request Jul 28, 2017
* commit '93340e19a1e1e68885a36976113bc400eb2be985': (35 commits)
  Preparation for the final 3.3.0 release. (SmingHub#1202)
  Small fixes before the final 3.3.0 (SmingHub#1203)
  Updated the third-party modules.
  Added example demonstrating Js and CSS combining ... (SmingHub#1200)
  Fixed WebSocket sample HTML page (SmingHub#1201)
  Feature/auto deployment on release (SmingHub#1198)
  Handle incomplete frame to prevent WebsocketClient ending in an endless loop (SmingHub#1189)
  Fixes for styling issues reported by Codacy (SmingHub#1196)
  Feature/httpserver etag caching (SmingHub#1194)
  HttpServer tuning to allow serving of more requests. (SmingHub#1187)
  decode-stacktrace.py: Added python3 compatability. (SmingHub#1190)
  Release Candidate 1 for version 3.3.0. (SmingHub#1185)
  Station::waitConnection method was deprecated and is now removed. (SmingHub#1171)
  Adding fixes for issues reported by Vera++ and CppCheck. (SmingHub#1178)
  Changes related to POST parameter unescaping. (SmingHub#1177)
  Small fixes to comparison and memory related issues. (SmingHub#1172)
  Reset response and request data after completion.
  Custom PWM is enabled by default. (SmingHub#1164)
  TemplateStream: the total length should be calculated from the browser. HttpServer: The default keepalive time is set to 0.
  HttpClient: memory usage fixes. (SmingHub#1161)
  ...
@slaff slaff removed the 3 - Review label Sep 29, 2018
@slaff slaff deleted the tuning/http-server branch July 9, 2021 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants