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?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAORUUQVwioZTuH3Q9xTG-c-EUguiqt6C9CbLG2jeHWUf-QrWNQ%40mail.gmail.com.

Reply via email to