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

tcp_recvfrom.c:resolve issue in tcp_recvhandler #15287

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

wangchen61698
Copy link
Contributor

Note: Please adhere to Contributing Guidelines.

Summary

malloc a new iob to handle psock_send_eventhandler when tcp_recvhandler calls tcp_newdata to clear dev->d_iob

Impact

tcp_recvhandler

Testing

Manual verification

…n tcp_recvhandler calls tcp_newdata to clear dev->d_iob

Signed-off-by: wangchen <[email protected]>
@github-actions github-actions bot added Area: Networking Effects networking subsystem Size: S The size of the change in this PR is small labels Dec 19, 2024
@@ -408,12 +409,37 @@ static uint16_t tcp_recvhandler(FAR struct net_driver_s *dev,

tcp_sender(dev, pstate);

if ((flags & TCP_ACKDATA) != 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

@wangchen61698 suggestion: please include a comment before this block you added here to explain the idea of doing this way

@xiaoxiang781216 xiaoxiang781216 linked an issue Dec 20, 2024 that may be closed by this pull request
1 task
@xiaoxiang781216 xiaoxiang781216 merged commit 8ea3166 into apache:master Dec 22, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Networking Effects networking subsystem Size: S The size of the change in this PR is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HELP] TCP/IP psock_send_eventhandler hardfault
3 participants