Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.3.6

On Windows every request works again. It is a patch release, so a dependency
written as a caret range, `tinyhttps = "^0.3.1"`, resolves to it.

### Winsock is started at the first socket

[#26](https://github.com/mcpplibs/tinyhttps/pull/26). `Socket::platform_init()`
(WSAStartup) existed and was never called. On Windows the first `connect` then
ran `socket()` and `getaddrinfo()` with Winsock unstarted, and every request
ended in `statusCode = 0`, `statusText = "Connection failed"`, with nothing
saying why.

* `Socket::ensure_platform_started()` runs once per process at the top of
`Socket::connect`, before the first `socket()` or `getaddrinfo()`;
`Socket::platform_started()` says whether it ran.
* `platform_init()` is unchanged and still public.
* `tests/test_winsock_start.cpp` is the first socket of its process and checks
both.

## 0.3.5

A handshake that never completes no longer holds a request for good, and a
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ Windows). Locally,
### 添加依赖

```bash
mcpp add tinyhttps@0.3.5
mcpp add tinyhttps@0.3.6
```

或在 `mcpp.toml` 中手动添加:

```toml
[dependencies]
tinyhttps = "0.3.5"
tinyhttps = "0.3.6"
```

### 构建
Expand Down
2 changes: 1 addition & 1 deletion mcpp.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
namespace = "mcpplibs"
name = "tinyhttps"
version = "0.3.5"
version = "0.3.6"
description = "Minimal C++23 HTTP/HTTPS client with SSE streaming support"
license = "Apache-2.0"
repo = "https://github.com/mcpplibs/tinyhttps"
Expand Down
Loading