pbrucla / reverse_proxy_group2

Group 2's Reverse Proxy Project - Spring 2024
0 stars 1 forks source link

Fix: Response is now read based on contentLength and will no longer stall on keepalive #12

Closed LLeon360 closed 3 months ago

LLeon360 commented 3 months ago

Response is no longer piped from backend, instead response is read in based on content length.

This is a fix but it doesn't keep the connection alive. The connection still closes after each request so if the browser wants to keep the connection alive for multiple requests, this isn't doing that. However, this fixes the annoying issue where the response Is stalled because the pipe wait until it times out when the connection is kept alive.