mirror of
https://github.com/smittix/intercept.git
synced 2026-06-14 08:43:33 -07:00
9622a00ea1
BufferedReader.read(n) on non-interactive streams (Python 3.14) blocks until the full n bytes accumulate, starving the decoder of real-time PCM data. Use os.read() on the raw file descriptor instead, which returns as soon as any data is available. Falls back to .read() for file-like objects without fileno() (e.g. BytesIO in tests). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>