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

Increase and stabilize tcp speed #25

Merged
merged 4 commits into from
Dec 13, 2024
Merged

Conversation

ToveRumar
Copy link
Contributor

  • Close socket on disconnect and dispose of descriptor
  • Optimize lwip settings for sending data. Increase buffers
  • Use IRAM optimization flag for lwip

If socket is not explicisly closed the resources and the free socket spot will not be
released. The connection will be refused after some connection attempts.
Clarified naming of the socket descriptors to be clearer
Decrease nbr max connections. We do not need many. This saves a bit of mem but not much.
Increase all send buffer, window and queue params so we can buffer much more while waiting for acks.
These changes increaased the speed from about 3,5-4.5mbps to 8-10mbps
Copy link
Member

@evoggy evoggy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ToveRumar ToveRumar merged commit 4007b42 into main Dec 13, 2024
1 check passed
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