fix(proxy): disable buffering for sandbox streams#295
Conversation
|
CubeSandbox is not just for envd, there are also scenarios where buffers are needed, and perhaps we need to clearly distinguish which requests require buffers and which are not |
|
Thanks for the contribution @josh-cow. |
@kinwin-ustc @staryxchen |
|
I think you can continue to modify in this direction |
Hi @josh-cow, I have raised an issue (e2b-dev/infra#2707) to envd, but haven’t received a response yet. So I think you can working on the Cube side (adding a dedicated streaming-only location) first to workaround. |
Patch for
nginxconfig:Interactive
envdConnect streams (PTY) need chunks flushed immediately. With CubeProxy’s global proxy_buffering on, long-lived PTY streams can receive input but not deliver outputpromptly.
Validated:
nginx -tinside the running cube-proxy container passed.envdProcess/Start returned 200 and streamed the start frame immediately.