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

Improve HTTP and System Stability #571

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Improve HTTP and System Stability #571

merged 1 commit into from
Dec 11, 2024

Conversation

eandersson
Copy link
Collaborator

@eandersson eandersson commented Dec 10, 2024

I ran extensive benchmarking against the API to try to find the sweet spot between stability, performance and memory usage. Overall I saw an increase from ~12 to ~15 http requests per second and drastically lower http errors when under reasonable load.

  • Increased HTTP max sockets from 4 to 7 (3 are reserved internally).
  • Increased ESP32 max sockets from 10 to 16 (added a buffert of 3 additional unused sockets to protect the system).
  • Disable WiFi Power Savings.
  • Disable Bluetooth.

@WantClue WantClue self-assigned this Dec 10, 2024
@WantClue WantClue added enhancement New feature or request accepted This issue will be worked on labels Dec 10, 2024
@WantClue WantClue merged commit 695d84a into master Dec 11, 2024
2 checks passed
@eandersson eandersson deleted the http_performance branch December 23, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This issue will be worked on enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants