kong icon indicating copy to clipboard operation
kong copied to clipboard

upstream prematurely closed connection & upstream response is buffered to a temporary file

Open vpilania opened this issue 6 months ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Kong version ($ kong version)

2.6

Current Behavior

http-502 error upstream prematurely closed connection while reading response header from upstream:

2024/07/26 03:33:06 [error] 22940#0: *228411 upstream prematurely closed connection while reading response header from upstream, client: 10.xx.xx.xx, server: kong, request: "POST /search HTTP/1.1", upstream: "https://127.0.0.1:443/search", host: ""

an upstream response is buffered to a temporary file:

2024/07/26 03:30:21 [warn] 22940#0: *202814 an upstream response is buffered to a temporary file /opt/kong/proxy_temp/4/03/0000000034 while reading upstream, client: 10.xx.xx.xx, server: kong, request: "POST /search HTTP/1.1", upstream: "https://127.0.0.1:443/search", host: ""

Expected Behavior

http-502 error should not happen and response should go directly to the client without buffering.

Steps To Reproduce

No response

Anything else?

No response

vpilania avatar Jul 26 '24 03:07 vpilania