@e2b/python-sdk@2.45.1
·
24 commits
to main
since this release
Patch Changes
- b17b726: Stop the shared retrying transports from mirroring streamed request bodies in
memory. pyqwest's retry middleware keeps a non-bytesbody replayable by
copying it as it is sent, so a streamedfiles.writeof a file-like object or
volume.write_filegrew a full in-RAM mirror and peak memory scaled with file
size. The transports now declare pyqwest'sRetryMode.UNBUFFERED: a streamed
body is replayed only while nothing has been read from it, which is all the
SDK's connect-only retry policy needs — aConnectionErroris raised only
before the request was written. Connect retries are unchanged, andbytes
bodies (unary RPC payloads, in-memory writes) were already replayable without
a copy.