E
eeh
Hi,
I am developing an Ethernet device to interface with a Java
application. The device firstly connects to the Java application
through TCP connection. After sending data, the device would disconnect
actively. However, I find that the Java socket does not respond to the
disconnection by any exception.
I have checked by netstat command that the connection is in a state
CLOSE_WAIT. Then I check the TCP state diagram that in this state the
application should close itself and then send a FIN packet and proceeds
the state to LAST_ACK.
But why the application hangs at the state CLOSE_WAIT?
Is there any way to let it close instantly?
Thanks
I am developing an Ethernet device to interface with a Java
application. The device firstly connects to the Java application
through TCP connection. After sending data, the device would disconnect
actively. However, I find that the Java socket does not respond to the
disconnection by any exception.
I have checked by netstat command that the connection is in a state
CLOSE_WAIT. Then I check the TCP state diagram that in this state the
application should close itself and then send a FIN packet and proceeds
the state to LAST_ACK.
But why the application hangs at the state CLOSE_WAIT?
Is there any way to let it close instantly?
Thanks