Make poll() the default ()

* Make poll() the default

select() can still be enabled by defining CPPHTTPLIB_USE_SELECT.

* Run tests with select() and poll()
This commit is contained in:
Florian Albrechtskirchinger 2025-02-18 11:23:23 +01:00 committed by GitHub
parent cdc223019a
commit 6e73a63153
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 57 additions and 8 deletions

View file

@ -2,7 +2,7 @@ FROM yhirose4dockerhub/ubuntu-builder AS builder
WORKDIR /build
COPY httplib.h .
COPY docker/main.cc .
RUN g++ -std=c++23 -static -o server -O2 -I. -DCPPHTTPLIB_USE_POLL main.cc && strip server
RUN g++ -std=c++23 -static -o server -O2 -I. main.cc && strip server
FROM scratch
COPY --from=builder /build/server /server