Hello,
When I send an TCP packet (1022 bytes) from my PC, I receive the packet in 2 times (with TCP_EVT_DATA). 536 bytes first and 486 bytes.
I don't understand why I can't receive it in one time.
Anybody can help me ?
Thanks.
TCP data provides a streamed data link. You should not assume or expect a request to be sent in one block.
However, you might want to look at the Maximum Segment Size.
Here is the config : #define TCP_MTU 1460 /* TCP default max. transfer unit */ #define TCP_DEF_MSS 1460 /* TCP default max. segment size option */
View all questions in Keil forum