Socket Client: How to handle FIN when establishing connection?
posted 9 years ago
Hello. I am trying to create a client socket app to connect to a third party service. One of the validation tests that they perform is to see if I can handle a FIN right after establishing the connection. So, I create a new socket, the connection is established and then they send a FIN. I have searched online, but can't figure out any way to check whether or not I have received a FIN. I assumed that the socket would through an exception at some point, but it still seems to think that it has a valid connection.