NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: FastCGI vs local server with reverse proxy
On Mon, 15 Dec 2025 11:54:08 +0530
Mayuresh <mayuresh%acm.org@localhost> wrote:
> On Mon, Dec 15, 2025 at 07:03:35AM +0100, Christof Meerwald wrote:
> > Not really expected if everything is implemented correctly. Maybe
> > something to do with concurrent connections not being handled
> > in the best way with cpp-httplib?
>
> This was with a single client, no concurrent requests.
>
> Wonder if this remark in DESCR of www/cpp-httplib relevant
>
> NOTE: This library uses 'blocking' socket I/O. If you are looking
> for a library with 'non-blocking' socket I/O, this is not the one
> that you want.
There are multiple versions of HTTP - 1.0, 1.1, 1.2, 2, 3.
Some support pipelining and/or multiplexing, some don't. There are
other features which can improve performance like compression and
binary vs. text protocol.
I've never heard or used cpp-httplib so not sure how it actually works.
If you want to profile this library I would say start with getting
traces for HTTP protocol on the wire and look at the dynamics of it.
Home |
Main Index |
Thread Index |
Old Index