Update README

This commit is contained in:
yhirose
2026-04-08 18:35:56 -04:00
parent 7a7f9b30e7
commit 783de4ec4e

View File

@@ -1475,12 +1475,6 @@ auto sock = svr.socket();
httplib::set_socket_opt(sock, IPPROTO_TCP, TCP_NODELAY, 1);
```
For time-based options, use `set_socket_opt_time` from the `detail` namespace:
```cpp
httplib::detail::set_socket_opt_time(sock, SOL_SOCKET, SO_RCVTIMEO, 5, 0); // 5 seconds
```
> [!TIP]
> For most use cases, prefer `set_tcp_nodelay(true)` or `set_socket_options(callback)` on the Server/Client instead of calling `set_socket_opt` directly.