Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

set lwip tcp mss to 1460#966

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
pennam wants to merge1 commit intoarduino:main
base:main
Choose a base branch
Loading
frompennam:tcp-mss
Draft

Conversation

pennam
Copy link
Contributor

fixes#937

@schnoberts1
Copy link

Does it fix it or mask an underlying problem that would exist if the payload was much larger?

@megacct
Copy link
Contributor

FYI, I've been running with the following settings for a few months without issue. I average 9mbps (11 peak) on large downloads.

"lwip.memp-num-tcp-seg": 32,
"lwip.memp-num-tcpip-msg-inpkt": 16,
"lwip.socket-max": 12,
"lwip.tcp-mss": 1460,
"lwip.tcp-socket-max": 10,

These links were useful:
https://lwip.fandom.com/wiki/Maximizing_throughput
https://lwip.fandom.com/wiki/Tuning_TCP

pennam reacted with heart emoji

@schnoberts1
Copy link

schnoberts1 commentedOct 1, 2024 via email

I think the issue here is partially reading data from a server (which is sending more than read) then closing the socket and this resulting in a RST but the stack keeping the underlying resources open. On 1 Oct 2024, at 13:34, megacct ***@***.***> wrote:FYI, I've been running with the following settings for a few months without issue. I average 9mbps (11 peak) on large downloads. "lwip.memp-num-tcp-seg": 32, "lwip.memp-num-tcpip-msg-inpkt": 16, "lwip.socket-max": 12, "lwip.tcp-mss": 1460, "lwip.tcp-socket-max": 10,These links were useful:https://lwip.fandom.com/wiki/Maximizing_throughputhttps://lwip.fandom.com/wiki/Tuning_TCP—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>

@megacct
Copy link
Contributor

I only see an upside to merging this PR. Am I missing a downside?

@schnoberts1
Copy link

Given the memory of the target devices I'd agree. It's a better default.

@pennam
Copy link
ContributorAuthor

👍 I'll add this to the changes to be included in the next 4.3.x release. Since it really don't fix#937 i was unsure if merge or not, but i agree that 1460 is a better default. I will try to do some testing also with the other settings suggested by@schnoberts1 and update this PR.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Every 5th TCP connection fails on Arduino Giga R1 if we don't fully read the HTTP content sent from the server each time
3 participants
@pennam@schnoberts1@megacct

[8]ページ先頭

©2009-2025 Movatter.jp