Hi, I began to find it strange that most potentially blocking operations across the network for Dial, various http, sql and other things support context.Context, but basic Read() and Write on net.Conn do not.
Instead they support a trick of setting the read or write deadlines to the past once the operation has started. I decided to experiment with dealing with Read and Write in the same way as these other things and the result is here: https://godoc.org/gitlab.com/streamy/concon Any thoughts on this idea? (It's not yet heavily tested by the way.) -- Martin. -- 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. For more options, visit https://groups.google.com/d/optout.