diff options
author | Aidan Holm <alfh@google.com> | 2024-02-01 00:42:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 00:42:38 (GMT) |
commit | a79a27242f75fc33416d4d135a4a542898d140e5 (patch) | |
tree | 34ac0e65ee88f65a4790b648ff2fe6ea69f8648f /Python/gc_free_threading.c | |
parent | 80aa7b3688b8fdc85cd53d4113cb5f6ce5500027 (diff) | |
download | cpython-a79a27242f75fc33416d4d135a4a542898d140e5.zip cpython-a79a27242f75fc33416d4d135a4a542898d140e5.tar.gz cpython-a79a27242f75fc33416d4d135a4a542898d140e5.tar.bz2 |
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.
Diffstat (limited to 'Python/gc_free_threading.c')
0 files changed, 0 insertions, 0 deletions