I suppose that this will be probably caused by bug in TCP close in KSDK 1.1. There is problem with canceling timeout events.
As workaround please edit tcp_close.c file and add lines 9-13 below to TCP_Close_TCB() function:
/*
** Cancel timers...
*/
(void)TCP_Timer_stop(&tcb->sndxmittq.t, tcp_cfg->qhead);
(void)TCP_Timer_stop(&tcb->sndacktq.t, tcp_cfg->qhead);
(void)TCP_Timer_stop(&tcb->sndtq.t, tcp_cfg->qhead);
(void)TCP_Timer_stop(&tcb->rcvtq.t, tcp_cfg->qhead);
if(tcb->expire.PRIVATE)
{
TCPIP_Event_cancel(&tcb->expire);
tcb->expier = NULL;
}
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------