Repository navigation
feat(tinyhttps): bump mcpplibs.tinyhttps to 0.3.7 - #978
Merged
Merged
Conversation
…d bounded; streamed request body)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.7topkgs/t/tinyhttps.luaon the three platforms and moves the consumer to it. gitany needs thisrelease: its stalled reads (
kal_stream_read) were the defect that #28 describes, and its streamedupload is built on
BodySource.Source and versions
0.3.7https://github.com/mcpplibs/tinyhttps0.3.7(annotated, commit7d2be50)archive/refs/tags/0.3.7.tar.gzb8585bc7e94f85acff0f55e30b22680f152489f622b3db270aba71fd468c9f0ftinyhttps-0.3.7/(thearchive/refs/tagsform, as in every earlier entry)https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.3.7/tinyhttps-0.3.7.tar.gz, the same tarballWhat changed upstream
readTimeoutMsbounds everyrecvandsend, including therecvthat completes a TLS record.Before this, a peer that stopped inside a record held a request indefinitely: with
readTimeoutMs = 5000a request was still waiting after 40 s.Socket::set_idle_timeout,wait_before_sendandSO_SNDTIMEOcarry the bound, andwrite_allnow bounds the time withoutprogress instead of the whole write.
BodySourceis a size plus a reader by offset, andHttpRequest::bodySourcestreams a request bodywith
Content-Length.BodySource::file(path)reads a file. A request that sets bothbodyandbodySourceis refused before anything is sent.This is a patch release: a dependency written as
tinyhttps = "^0.3.1"resolves to it. The moduleinterface is
mcpplibs.tinyhttps, as before (Form A, the tarball's ownmcpp.toml).Descriptor and workspace changes
pkgs/t/tinyhttps.lua:["0.3.7"]is added toxpm.linux,xpm.macosxandxpm.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 requestwith both bodies and expects the refusal, expects
BodySource::fileon a missing path to be empty,and expects a fresh socket's idle flag to be unset.
Verification
mcpp xpkg parse pkgs/t/tinyhttps.luasucceeds and shows0.3.7on the three platforms.mirror --verify, was downloaded back twice. All four copies have the sha256 above.Linux, macOS, and Windows (msvc and llvm), plus the OpenKal images.
tests/examples/tinyhttps:mcpp testresolves0.3.7from 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