Quoting robert engels (2018-12-11 19:39:46) > I am not sure you can do this at the application layer - you need kernel > support to drop packets.
One could write a mock implementation of e.g. net.Conn that does this kind of simulation; have a goroutine that calls time.Sleep at random intervals in the most basic case. If you want to test UDP, randomly drop packets, reorder, etc. Could get fancier. No external support required. That was the kind of thing I interpreted Dan's question to be asking about. I don't know off-hand of a good library that already does this though. -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.