Forum Discussion
Altera_Forum
Honored Contributor
20 years agoWhy is sending tcp so much slower than receiving?
I have some code running under uC-OS that receives a file via TCP and then writes it to flash. This is very quick, a 4MB file is received in 20 seconds or so. I then have another piece of code that d...
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by bkucera@Jul 19 2006, 10:28 AM any ideas?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17019)
--- quote end ---
--- Quote End --- Have you tried profiling your code? Also, you're using uC-OSII with the raw LWIP API, right? Any reason you're not using the sockets-based API? Hopefully, you're not mixing the two, as I get the feeling that this would be a bad idea :-) With the drastically longer times you're seeing, I'd expect that you're hitting timeouts and resends all over the place. Have you monitored your traffic, with something like ethereal to see what's happening? Cheers, - slacker