Closed yanns closed 7 years ago
The tokio buffer is 8096
bytes. This means we have to do multiple reads from the backend and writes to the frontend to serve a large file. I have this mostly done and can post where I am at later today. Currently, I am working through the FramedProxy
implementation and how it interacts with tokio-proto. I can post a WIP PR later today so you can take a look.
When getting an asset directly on the server (port 9000)
With alacrity running on port 9001 (with branch https://github.com/yanns/alacrity/tree/buffer_body_when_incomplete):
So we can see that alacrity is buffering the body as expected. The server sends the whole javascript. But alacrity never sent the http response to the client.