Behaviour of tcp receive in Http get

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

The wiced_tcp_receive interface used in wiced_http_get seems to return only 1460 bytes at a time even if the expected size is higher. Is there any efficient way to handle the tcp receive as the current implementation which bails out only on timeout? 

Francis

0 Likes
2 Replies
Anonymous
Not applicable

Hey Francis,

Have you tried the demo with the latest sdk?

In my opinion, you will have to implement the functionality to break the packets and then transfer.

Hope I answered your question. Let us know if you need more help.

You can find the SDK here.

WICED Software Development Kit 3.3.1

Thanks,

AB

0 Likes
Anonymous
Not applicable

I think that the 1460 bytes come due to MTU restrictions. In order to "play it safe" across various network topologies, I would suggest you'll break the tcp stream into smaller than 1460 packets.

Tsachi

0 Likes