File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.3.6
4+
5+ On Windows every request works again. It is a patch release, so a dependency
6+ written as a caret range, ` tinyhttps = "^0.3.1" ` , resolves to it.
7+
8+ ### Winsock is started at the first socket
9+
10+ [ #26 ] ( https://github.com/mcpplibs/tinyhttps/pull/26 ) . ` Socket::platform_init() `
11+ (WSAStartup) existed and was never called. On Windows the first ` connect ` then
12+ ran ` socket() ` and ` getaddrinfo() ` with Winsock unstarted, and every request
13+ ended in ` statusCode = 0 ` , ` statusText = "Connection failed" ` , with nothing
14+ saying why.
15+
16+ * ` Socket::ensure_platform_started() ` runs once per process at the top of
17+ ` Socket::connect ` , before the first ` socket() ` or ` getaddrinfo() ` ;
18+ ` Socket::platform_started() ` says whether it ran.
19+ * ` platform_init() ` is unchanged and still public.
20+ * ` tests/test_winsock_start.cpp ` is the first socket of its process and checks
21+ both.
22+
323## 0.3.5
424
525A handshake that never completes no longer holds a request for good, and a
Original file line number Diff line number Diff line change @@ -214,14 +214,14 @@ Windows). Locally,
214214### 添加依赖
215215
216216``` bash
217- mcpp add tinyhttps@0.3.5
217+ mcpp add tinyhttps@0.3.6
218218```
219219
220220或在 ` mcpp.toml ` 中手动添加:
221221
222222``` toml
223223[dependencies ]
224- tinyhttps = " 0.3.5 "
224+ tinyhttps = " 0.3.6 "
225225```
226226
227227### 构建
Original file line number Diff line number Diff line change 11[package ]
22namespace = " mcpplibs"
33name = " tinyhttps"
4- version = " 0.3.5 "
4+ version = " 0.3.6 "
55description = " Minimal C++23 HTTP/HTTPS client with SSE streaming support"
66license = " Apache-2.0"
77repo = " https://github.com/mcpplibs/tinyhttps"
You can’t perform that action at this time.
0 commit comments