This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCP IP stack behaviours

I'm using keil TCP IP stack on many devices but I've observed a strange thing: My device is server and the client open the socket. If the client doesn't transmit data after socket opening (SYN sequence), the socket is closed by the server (my device) after less than a second. The TCP socket "lease" time is fixed to 120" but a real event of TCP_EVT_CLOSE is generated by stack..... Can anyone explain this, please?

Parents
  • I've seen the correct sequences and the wrong ones with Ethereal and the match with your indications is complete. Thanks a lot. Unfortunately I haven't a debug serial line but now all seems work well.
    About 100ms ticks, this value makes quite slow the "send_data" state machine. I've tried to speed up the system (tick of RTL = 1ms, timer and tcp tick = 5ms) and all run well. Thanks again.

Reply
  • I've seen the correct sequences and the wrong ones with Ethereal and the match with your indications is complete. Thanks a lot. Unfortunately I haven't a debug serial line but now all seems work well.
    About 100ms ticks, this value makes quite slow the "send_data" state machine. I've tried to speed up the system (tick of RTL = 1ms, timer and tcp tick = 5ms) and all run well. Thanks again.

Children