On Tue, Feb 7, 2017 at 8:50 PM, <liuding...@gmail.com> wrote: > go version: 1.7.4 > OS: debian > code like: https://play.golang.org/p/DMIrSr2PLg > > this project just like IM, there are both goroutine for each client > connection, one to Read, another to Write. > recently i found conn.Close() (line 9) occasional block while high > concurrency, then there are a large of ESTABLISHED status connections, and > they won`t closed forever. Unless i restart the program > So In what case will it block?
I'm not aware of any way that conn.Close can block for any length of time. I suspect that something else is going on. Ian -- 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.