1
µTasker general / Large HTTP transfers failing due to retransmission counter
« on: May 17, 2010, 04:17:15 PM »
Hello,
For some time now we've been having problem transferring large files (>1MB) over HTTP. uTasker would send a RST after some time. After investigation, I was able to identify the culprit. fnPollTCP will decrement the ptr_TCP->ucRetransmissions counter each time a TCP_EVENT_REGENERATE is generated, and when the counter value is zero then the connection is closed (fnCloseTCPSession is called). The only place I see the counter being reset is in fnNewTCPState which sets the counter value to TCP_DEF_RETRIES.
Shouldn't the ucRetransmissions counter be reset after each successfully transferred packet? Where would be the most appropriate place to do it?
Thanks for your support
Phil
For some time now we've been having problem transferring large files (>1MB) over HTTP. uTasker would send a RST after some time. After investigation, I was able to identify the culprit. fnPollTCP will decrement the ptr_TCP->ucRetransmissions counter each time a TCP_EVENT_REGENERATE is generated, and when the counter value is zero then the connection is closed (fnCloseTCPSession is called). The only place I see the counter being reset is in fnNewTCPState which sets the counter value to TCP_DEF_RETRIES.
Shouldn't the ucRetransmissions counter be reset after each successfully transferred packet? Where would be the most appropriate place to do it?
Thanks for your support
Phil