You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a benchmark by ab, set -k option which could enable keep alive, but it wasn't work.
keep alive connection number was always 0.
Why? How can I enable keep alive in code?
The text was updated successfully, but these errors were encountered:
Thank you @Ryman
Do you mean hyper default connection is keeping alive?
Only in the case of doing benchmark using ab, I should add response.set(hyper::header::Connection::keep_alive());
otherwise I don't need this code (e.g. in real production environment).
Am I right?
I made a benchmark by ab, set -k option which could enable keep alive, but it wasn't work.
keep alive connection number was always 0.
Why? How can I enable keep alive in code?
The text was updated successfully, but these errors were encountered: