[En-Nut-Discussion] TCP MSS
András Szemző
szemzo.andras at gmail.com
Wed Sep 30 11:07:37 CEST 2009
Hi,
I've implemented a wget like function to a sam7x. It will download a
file from a webserver, and store in in dataflash.
On ethernet link, I read the remote file in 256 byte chunks, and
everything is works fine.
But I have a problem on doing the same on a GPRS link. I tried to read
the file by 256, 128 or 64 byte chunks,
but after 2 256 byte read the fread only read 24 byte. The same is
true for 128 or 64 byte chunk, so I always read
536 byte, which is default TCP_MAXSEG.
so I read:
256
256
24
256
256
24
and so on.
I tried to increase TCP MSS, but it didn't helped.
Is there a solution to achive the same function on GPRS just like on
ethernet?
Or what I missed?
Thanks,
Andras
More information about the En-Nut-Discussion
mailing list