Skip to content

feat(tinyhttps): bump mcpplibs.tinyhttps to 0.3.7 - #978

Merged
Sunrisepeak merged 1 commit into
mainfrom
feat/tinyhttps-0.3.7
Dec 4, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
feat/tinyhttps-0.3.7

Conversation

@speak-agent

Copy link
Copy Markdown
Collaborator

Date: 2026-12-04

This follows the 0.3.6 bump (#936). Upstream published 0.3.7
(#29, which closes
#28). This change adds 0.3.7 to
pkgs/t/tinyhttps.lua on the three platforms and moves the consumer to it. gitany needs this
release: its stalled reads (kal_stream_read) were the defect that #28 describes, and its streamed
upload is built on BodySource.

Source and versions

0.3.7
Upstream https://github.com/mcpplibs/tinyhttps
Tag 0.3.7 (annotated, commit 7d2be50)
Tarball archive/refs/tags/0.3.7.tar.gz
sha256 (downloaded twice, and the mirror's copy downloaded twice) b8585bc7e94f85acff0f55e30b22680f152489f622b3db270aba71fd468c9f0f
Wrap directory tinyhttps-0.3.7/ (the archive/refs/tags form, as in every earlier entry)
CN mirror https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.3.7/tinyhttps-0.3.7.tar.gz, the same tarball
License Apache-2.0 (unchanged)

What changed upstream

  • readTimeoutMs bounds every recv and send, including the recv that completes a TLS record.
    Before this, a peer that stopped inside a record held a request indefinitely: with
    readTimeoutMs = 5000 a request was still waiting after 40 s. Socket::set_idle_timeout,
    wait_before_send and SO_SNDTIMEO carry the bound, and write_all now bounds the time without
    progress instead of the whole write.
  • BodySource is a size plus a reader by offset, and HttpRequest::bodySource streams a request body
    with Content-Length. BodySource::file(path) reads a file. A request that sets both body and
    bodySource is refused before anything is sent.

This is a patch release: a dependency written as tinyhttps = "^0.3.1" resolves to it. The module
interface is mcpplibs.tinyhttps, as before (Form A, the tarball's own mcpp.toml).

Descriptor and workspace changes

  • pkgs/t/tinyhttps.lua: ["0.3.7"] is added to xpm.linux, xpm.macosx and xpm.windows
    (GLOBAL and CN, one sha256). Every earlier entry is unchanged.
  • tests/examples/tinyhttps/mcpp.toml: mcpplibs.tinyhttps = "0.3.7".
  • tests/examples/tinyhttps/tests/api.cpp: a 0.3.7 check that needs no network. It sends a request
    with both bodies and expects the refusal, expects BodySource::file on a missing path to be empty,
    and expects a fresh socket's idle flag to be unset.

Verification

  • mcpp xpkg parse pkgs/t/tinyhttps.lua succeeds and shows 0.3.7 on the three platforms.
  • The GitHub archive was downloaded twice; the mirror asset, uploaded with gitany and checked with
    mirror --verify, was downloaded back twice. All four copies have the sha256 above.
  • Upstream CI for the release commit (0.3.7 — the read timeout bounds every recv and send, and a request body can be streamed tinyhttps#29) passed 10 of 10 jobs: gcc and llvm on
    Linux, macOS, and Windows (msvc and llvm), plus the OpenKal images.
  • tests/examples/tinyhttps: mcpp test resolves 0.3.7 from this tree, downloads it, builds it and passes on Linux (gcc 16.1.0); macOS and Windows are this pull request's workspace jobs.

Authorship: ai-and-human

@Sunrisepeak
Sunrisepeak merged commit 452d1c5 into main Dec 4, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants