This is a problem I've been thinking on for a while. As far as I can tell, the best way to go about it will be to somehow expose the runtime network poller.
I've made a proposal to do so: https://github.com/golang/go/issues/15021. I'd love to make it happen, but I don't have the runtime chops to really understand how to make it all work. -- 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.