Hi All,
I have a VB test application(Client-Server Model)which inturn calls c/c++ engine which uses ACE classes for the TCP socket creation and TCP socket close. When Server closes the TCP socket and now if client tries to reconnect to the server client gets RST from Server in response to SYN sent by the client.
(when i do netstat -a on the command prompt i see that TCP port is not in the listening state).
The above behaviour is fine.
My problem is if i include winsock component in the VB test application(Note that we have only included winsock component, we are not using it at all means there is not a single line in VB for this component) and now when Server close the tcp socket (using one of the API provided by ACE) and now if the client try to reconnect to the server by sending SYN, Server reponds with SYN, ACK but client is expecting RST from server since server has already closed the tcp socket.
(when i do netstat -a on the command prompt i see that TCP port is still in the listening state)
Please note that Server has cleaned up the ACE by calling ACE::fini() in both the above scenarios when it closes the tcp socket.
Can you ppl please tell me why is this behaviour??
Any help on this will be greatly appreciated.
Thanks