Closed eyalabraham closed 6 years ago
Wireshark trace attached. tcp-eth-rst-issue-num-6.pcapng.zip
TCP does not propagate a connection acceptance via the Accept call-back.
Verified that this is a Watcom compiler issue related to using the '-s' Stack Check switch. Problem is eliminated when switch is not used. Removed switch from Makefile.
TCP issues RSTs when a Transmission Control Block is used again for a new connection, after being closed with a RST from the web client (browser) on the last use. Load web page that uses (for example) TCB id #1. After the pages loads, the web client issued a RST (not sure this is ok!). When trying to open another page and reuse TCB id #1, the connection fails and the TCP issues RST to any segment after (SYN, SYN/ACK, ACK) three-way hand shake. Suspecting that the RST from the browser on that first use did not clean up the TCB properly.