cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jcwill585
Adventurer
Adventurer
440 Views
Registered: ‎06-13-2019

LWIP echo server sends payload data across TCP messages

Jump to solution

When sending tcp messages to a client the echo server will combine payloads into one tcp message.  Some of the payload data is split across two TCP messages.  None of the payloads exceeds 500 bytes and I want to only send one payload per TCP message to the client.  How is this done?

0 Kudos
1 Solution

Accepted Solutions
jcwill585
Adventurer
Adventurer
420 Views
Registered: ‎06-13-2019

Calling nagle disable before tcp write fixes this.

tcp_nagle_disable(pcb);
err = tcp_write(pcb, payload, length, 1);

View solution in original post

0 Kudos
2 Replies
nanz
Moderator
Moderator
427 Views
Registered: ‎08-25-2009

Hi @jcwill585 ,
Can you please send ping command that you are using and the wireshark dump to show the issue?

 


-------------------------------------------------------------------------------------------

Don’t forget to reply, kudo, and accept as solution.

If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs and our Versal Ethernet Sticky Note.

-------------------------------------------------------------------------------------------
0 Kudos
jcwill585
Adventurer
Adventurer
421 Views
Registered: ‎06-13-2019

Calling nagle disable before tcp write fixes this.

tcp_nagle_disable(pcb);
err = tcp_write(pcb, payload, length, 1);

View solution in original post

0 Kudos