Skip to content

Support Python 3.14t (Free-Threaded / No-GIL)#80

Open
Ristellise wants to merge 3 commits into
sardanioss:mainfrom
Ristellise:main
Open

Support Python 3.14t (Free-Threaded / No-GIL)#80
Ristellise wants to merge 3 commits into
sardanioss:mainfrom
Ristellise:main

Conversation

@Ristellise

Copy link
Copy Markdown

PR enables httpcloak to be fully compatible with python 3.14 free-threaded. Since httpcloak uses ctypes for it's bindings instead of C-extensions, no-wheel changes were needed.

Changes:

  1. Fixed double-checked locking race condition in _get_lib() that caused pointer truncation segfaults without the GIL.
  2. Moved _fast_buffer_pool to threading.local() so concurrent requests don't write to the exact same ctypes memory block.

The build process from a cursory examination seems to support free-threaded out of the box. So there wasn't any need to change there.

@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

@Ristellise is attempting to deploy a commit to the sardanioss' projects Team on Vercel.

A member of the Team first needs to authorize it.

@Ristellise Ristellise changed the title Support Python 3.13t (Free-Threaded / No-GIL) Support Python 3.14t (Free-Threaded / No-GIL) Jul 4, 2026
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.

1 participant