zzqCh opened a new issue, #9511: URL: https://github.com/apache/apisix/issues/9511
### Current Behavior <img width="1307" alt="image" src="https://github.com/apache/apisix/assets/10181098/d6cdd0e1-56bb-4eaf-9fa3-ffe324a35d42"> ### Expected Behavior when client close the connection, the connection state between client and apisix should be closed or time-wait . ### Error Logs 2023/05/19 09:43:50 [error] 68280#3244386: *2113 stream [lua] init.lua:472: from_upstream(): failed to handle upstream: closed while prereading client data, client: 127.0.0.1, server: 0.0.0.0:9100 <img width="1723" alt="image" src="https://github.com/apache/apisix/assets/10181098/3a231d7f-2991-4a5a-8249-5e635c57d4d5"> ### Steps to Reproduce 1.enable the stream proxy and enable the redis xrpc protocol in config.yaml `apisix: stream_proxy: tcp: - 9100 xrpc: protocols: - name: redis ` 2.create the stream route `{ "server_port": 9100, "upstream": { "nodes": { "127.0.0.1:6379": 1 }, "type": "roundrobin", "name":"redis0000" }, "protocol":{ "name":"redis" } }` 3. on the redis client such as 'another Redis Desktop Manager' , open the connection, the connection config like this: <img width="887" alt="image" src="https://github.com/apache/apisix/assets/10181098/45c65e20-bfce-4032-bbc6-ff3f6e36e2a4"> 5. View the current connection <img width="1095" alt="image" src="https://github.com/apache/apisix/assets/10181098/4dffc352-e405-4383-a4aa-abe8f540c40c"> 7. on the redis client,close the connection. <img width="735" alt="image" src="https://github.com/apache/apisix/assets/10181098/8360bab9-9acd-49dd-a6f9-69d82ac8445f"> 9. view the current connection <img width="1248" alt="image" src="https://github.com/apache/apisix/assets/10181098/d3eb2491-59a2-48cc-ae24-911a53d4f49b"> ### Environment - APISIX version (run `apisix version`): 3.2 - Operating system (run `uname -a`): Darwin localhost 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64 - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): apisix base,openresty/1.21.4.1 - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): 3.5.4 - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
