I would like to disable request buffering, I have spoke on discord and filed an issue. My problem as explained is Cloudflare is buffering my request, I have a long running request that I wish to read in chunks as they arrive using a BYOB stream reader, it seems to only work if the client signals an end of stream, at that moment Cloudflare starts processing my request.
I was advised that I should disable request buffering.
This is Workers, right? Can you edit the title of your post (category, actually) so it’s in Developers → Workers? That should get more attention. @matteo does quite a bit in Workers, as does @thomas4.
I haven’t tested Websockets at all yet and streaming chunks of data is still very much undocumented. There’s just handful of posts here on the forum too. Sorry I can’t be of much help until I have time to work on it.
Okay np, thanks for looking at it regardless, also the websockets are not part of the equation, they work fine i think because I testing with fetching to another DO (instead of echoing to websockets) and the same blocking occurs.
The problematic part is chunk encoding / body streaming.
but seems worker only sent request body into code when http body is finished in client side. Can’t
bidirectional streaming. But deno deploy is fine for bidirectional streaming.