> I'm not sure why w.Write would freeze; is your process starting to swap > and it is not really frozen but just taking a long time? Is it being > killed by the kernel's out-of-memory monitor?
In the OP's code, w.Write was writing a large amount of data to a pipe, while nothing was reading from the other end. This was the reason for the deadlock. -- 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/53825010-ea65-4f69-8576-bfad38021acen%40googlegroups.com.