This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A question for networking junkies/experts

Hello,

This is not a Keil related question (even though the Keil compiler is used to build the code). Sorry for that, I was merely wondering if someone had a clue...!
I have a rather strange problem: using open source networking library lwIP running of a LPC1788/FreeRTOS (does not matter I think), I am attempt to upload large files to a server. If a browser is used for that purpose (mimicking the embedded product behavior), the data is deliver quickly. However, if lwIP is used, I see that the reception window of the server shrinks and shrinks until it is so small that the connection is stalled and then broken. I do see that the browser uses TCP scaling (en.wikipedia.org/.../TCP_window_scale_option) but I don't think this is the main reason: even sending 5 KB/s induces this behavior!
I know that server is powerful enough.
I know lwIP is fast enough.
I don't understand why the reception window of the server shrinks when lwIP sends data, but not if a browser sends data.
Any ideas?

Parents
  • Shrinking reception window probably indicates that the server is not acknowledging received data. It's probably a bug in the server. You should inspect it with an in-circuit debugger. If that's problematic, try looking at the differences between the data sent by the browser and the embedded client.

Reply
  • Shrinking reception window probably indicates that the server is not acknowledging received data. It's probably a bug in the server. You should inspect it with an in-circuit debugger. If that's problematic, try looking at the differences between the data sent by the browser and the embedded client.

Children