On Tue, Jun 4, 2019 at 11:53 PM Inada Naoki <songofaca...@gmail.com> wrote:
> conn.SetReadDeadline(time.Now()) > Did you test that solution? Setting a deadline only affects "future Read calls" according to the documentation. It cannot be used to timeout an extant read. Which is what I would expect given the available UNIX like kernel APIs. So while I have not tested this using a program written in Go I would not expect it to work and the equivalent solution definitely does not work in other languages I use regularly. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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/CABx2%3DD9huXKQCW0o5a1b8VBvuvK8f%3DyVhn4JZ6%2Ba1c-BfS2n9Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.