websockets icon indicating copy to clipboard operation
websockets copied to clipboard

"Memory and Buffers" docs and max_queue in threading implementation

Open ismaelorenstein opened this issue 2 months ago • 1 comments

I believe the topic page "Memory and Buffers" in the documentation might need to be updated - in the end it says:

In the threading implementation, there is no queue of incoming messages. The max_queue argument doesn’t exist. The connection keeps at most one message in memory at a time.

But looks like max_queue exists in the threading implementation - I guess works the same as in the asyncio one?

ismaelorenstein avatar Oct 15 '25 02:10 ismaelorenstein

Good catch, thank you. I think it wasn't there in the initial version, then got added later as a performance optimization. Yes it has the same semantics as in the asyncio implementation.

aaugustin avatar Oct 15 '25 19:10 aaugustin