Hi everybody,

I'm trying to do Apache performance benchmarking for my course project. But
I met a strange problem. When I use a single client to establish multiple
TCP connections (e.g. 100) to an Apache server and send HTTP 1.1 requests
with the *"Connection: keep-alive"* header, I suppose the TCP connections
can be reused. But the Apache server will actively terminate TCP
connections, even if *"Connection: Keep-Alive"* and *"Keep-Alive: xxx" *are
included in the HTTP response header. I paste my code and more details on a
stack overflow question:

https://stackoverflow.com/questions/70346241/apache-actively-close-tcp-connections-when-keep-alive-is-set-by-the-client

I'd be very grateful if someone can help me solve this problem or tell me
why Apache has such a behavior. Thank you!

Chang Liu

Tsinghua University

Reply via email to