mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-23 04:59:11 +00:00
Make poll() the default (#2065)
* 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:
parent
cdc223019a
commit
6e73a63153
6 changed files with 57 additions and 8 deletions
|
@ -872,10 +872,10 @@ res->body; // Compressed data
|
|||
|
||||
```
|
||||
|
||||
Use `poll` instead of `select`
|
||||
------------------------------
|
||||
Use `select()` instead of `poll()`
|
||||
----------------------------------
|
||||
|
||||
`select` system call is used as default since it's more widely supported. If you want to let cpp-httplib use `poll` instead, you can do so with `CPPHTTPLIB_USE_POLL`.
|
||||
cpp-httplib defaults to the widely supported `poll()` system call. If your OS lacks support for `poll()`, define `CPPHTTPLIB_USE_SELECT` to use `select()` instead.
|
||||
|
||||
Unix Domain Socket Support
|
||||
--------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue