> We could also buffer everything to offload thread memory buffer by default
> and if buffer hits maximum size we could switch to temporary file (?)
> Just the idea of pushing every response immediately to offload thread so
> that once it's done worker can process another request, while the offload
> thread handles delivering our response to the client, seems nice for me.
>
> 2013/5/29 Łukasz Mierzwa <[email protected]>
>

I think we can use a translation for all.

For a ['one','two','three'] response we will end with:

buffer:
buffer:
buffer:
offload:


If we make the buffer filter smart enough we can store to disk after the
specified amount of bytes and directly use sendfile() in offload

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to