gh-111112: Avoid potential confusion in TCP server example. (#111113)
Improve misleading TCP server docs and example. socket.recv(), as documented by the Python reference documentation, returns at most `bufsize` bytes, and the underlying TCP protocol means there is no guaranteed correspondence between what is sent by the client and what is received by the server. This conflation could mislead readers into thinking that TCP is datagram-based or has similar semantics, which will likely appear to work for simple cases, but introduce difficult to reproduce bugs.
A
Aidan Holm committed
a79a27242f75fc33416d4d135a4a542898d140e5
Parent: 80aa7b3
Committed by GitHub <[email protected]>
on 2/1/2024, 12:42:38 AM