Good point. I assumed the OP was talking about TCP. Yes, UDP breaks all the assumptions, but there isn't much that can be done about that now.
On Monday, 20 November 2017 09:01:21 UTC-8, James Bardin wrote: > > Dave, should I then file a bug against net.UDPConn? ;) > > Though in this case I assume you must be using a TCP connection, so there > is no concept of a "message" and hence to direct connection between the > write size and the read size. If something other than UDP is expecting the > full message in a single Read call, it is incorrectly written and you > should file a bug. > > On Saturday, November 18, 2017 at 8:28:18 PM UTC-5, Dave Cheney wrote: >> >> It is ok to pass data in smaller chunks, the io reader contract permits >> that. If you find programs that fail to handle this id suggest raising a >> bug. > > -- 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.