Hi, I'm using Xbee Wi-Fi S6 module in SPI mode as TCP server to connect devices which do not support UART or USB. TCP socket is opened and communication is passed to MCU. It works very well.
But problem is that some out-of-my-control applications do not use persistent TCP connection but for each request-response new socket is established (i.e. source port is incremented). To be even worser the new socket is being initialized before the first one finalization flow is ended.
The tcpdumped sequence is (#1=old, #2=new socket):
FIN (app#1) - SYN (app#2) - ACK (xbee#1) - ACK(app#1) - FIN(app#1) - ACK(xbee#1) - RST(xbee#2)
Is somehow possible fix this issue at Xbee side ? I suppose Xbee's TCP stack can legally handle only one open socket.