-
-
Notifications
You must be signed in to change notification settings - Fork 555
Closed
Labels
Description
I'm wondering about the use case of transferring potentially large files over a websocket, where in the end the file would get written to the file system.
Currently, it seems the only way to do this with websockets
's current API is to write a bunch of (large-ish) bytestrings to the file system (of size max_size
) as they are read using recv()
. I'm wondering if this approach seems perfectly fine, or if it would make sense for websockets
to expose some kind of streaming API to bypass the creation of the intermediate bytestrings. This would be analogous to requests
's "streaming" mode.