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

LWIP sockets problem #79

Open
potap104 opened this issue Mar 6, 2024 · 1 comment
Open

LWIP sockets problem #79

potap104 opened this issue Mar 6, 2024 · 1 comment

Comments

@potap104
Copy link

potap104 commented Mar 6, 2024

I'm using the lwip socket library to send data to a server and found a problem.
I'm sending data in 3200 byte chunks using lwip_write().
After sending each fragment I use lwip_read() to get the response from the server.
After several reception and transmission cycles (about three), the bl602 freezes and stops transmitting data.
I discovered that at some point the sys_arch_sem_wait(sem, 0) function is called, which blocks the TCPIP task from executing.
What could be causing this blocking?
Thanks!

@yyipk
Copy link

yyipk commented May 11, 2024

The interface is blocked when sending TCP data because TCP needs to wait for the ACK from the peer. Here, sys_arch_sem_wait is likely waiting for the ACK to be received.

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

No branches or pull requests

2 participants