Skip to content

Commit a256cd1

Browse files
committed
docs: clarify chunked behavior in non-blocking pod log example
1 parent 137669c commit a256cd1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎examples/pod_logs_non_blocking.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def stream_logs():
2626
)
2727

2828
# 👇 make socket non-blocking with timeout
29+
# Note: when streaming logs with _preload_content=False, the transport may
30+
# deliver arbitrary chunk boundaries, so callers should split or buffer data
31+
# themselves if they need line-oriented processing.
2932
resp._fp.fp.raw._sock.settimeout(1)
3033

3134
try:

0 commit comments

Comments
 (0)