matt-42 / lithium

Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
https://matt-42.github.io/lithium
MIT License
1.26k stars 91 forks source link

Connection not closing #69

Closed ZinoviL closed 3 years ago

ZinoviL commented 3 years ago

I'm trying to test Lithium using ab (Apache HTTP server benchmarking tool) and connection not closing. Code: Screenshot from 2021-04-01 15-20-50 Cmake: Screenshot from 2021-04-01 15-21-19 Result: Screenshot from 2021-04-01 15-19-26

matt-42 commented 3 years ago

thanks for the report, I´ll investigate this next week when I´ll be completely free to work on lithium

matt-42 commented 3 years ago

Hi @ZinoviL ,

Lithium has no fallback for HTTP 1.0 . Which is why the connection stays open (the default for HTTP 1.1). Do you really need support of HTTP 1.0 ? I you need a benchmarking tool supporting HTTP 1.1 I recommand wrk: https://github.com/wg/wrk

ZinoviL commented 3 years ago

@matt-42 Yeah, i know about wrk, but i didn't find any info about http1 in your docs. Thanks for explanation.

matt-42 commented 3 years ago

I'll add a note on this in the docs.