Why Kafka client disconnect TCP connection when one request is timeout?

2025-02-26 Thread Hongshun Wang
Hi, devs, I am curious about why if a request is timeout, the tcp connection will be closed?[1] ? When close a tcp connection, all the pending request will be returnTimeoutException. Isn’t a waste? I notice that connection.max.idle.ms [2] will close idle co

why if a request is timeout, the tcp connection will be closed

2025-02-26 Thread Hongshun Wang
Hi, devs, I am curious about why if a request is timeout, the tcp connection will be closed?[1] ? When close a tcp connection, all the pending request will be returnTimeoutException. Isn’t a waste? I notice that connection.max.idle.ms[2] will close idle connections after the number of millis

Re: Why Kafka client disconnect TCP connection when one request is timeout?

2025-02-26 Thread Hongshun Wang
Each reconnection will need to authenticate. It cost a lot. On Tue, Feb 25, 2025 at 5:28 PM Hongshun Wang wrote: > Hi, devs, > > I am curious about why if a request is timeout, the tcp connection will be > closed?[1] ? When close a tcp connection, all the pending request will