Hi
Consider a sequence of events---
1. Tcp server started on port 8080 using net.Listen("tcp", ":8080")
2. Tcp client established a connection using net.Dial("tcp", ":8080") and received a conn object.
3. Tcp server is force killed.
4. Now when the tcp client performs conn.Write(), this operation pass with no error.
Question-
What should be a reliable way of writing to a tcp connection so that in step 4, client knows that it was writing to nothing and the write was not successful.
Since this is an expected tcp behaviour (thanks Ian for letting me know) am sure there must be some way to guarantee the tcp packet delivery (one way can be of ACK, but that will need server change, which is not very desirable in my situation).
Could you please point me to some relevant documents?