Skip to content

Commit 15a0705

Browse files
Merge pull request #2645 from nagashiva23/first-contribution
docs: clarify chunked behavior in non-blocking pod log example
2 parents 8a3313f + a256cd1 commit 15a0705

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)