Paul Warren

Results 8 comments of Paul Warren

Is there a solution for this? My setup code takes ~20 seconds, and it looks like every single spawned process runs the setup code again instead of using the objects...

EDIT: This does not fix the actual original issue. Every single one of my spawned workers still does the setup code, which slows things down a lot. However, I've significantly...

Any movement on this? I'm looking for an equivalent for `StreamReader.readuntil` so I can continuously listen for special termination chars in websocket messages.

I'm currently using asyncio.open_connection() and am referring to https://docs.python.org/3/library/asyncio-stream.html#asyncio.StreamReader.readuntil I connect to 58 web sockets, keep the connections permanently open, and for each web socket continuously loop over the following...

Wow, this is fantastic! I particularly like the use of bytearray's optimized delete-from-beginning feature. What do you mean by "It uses some algorithmic trickiness to avoid "slow loris" attacks."? What's...