You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FIXED in 4.6.0] Cloudflare: ssl: 'prefer' times out when the server declines TLS #153
On Cloudflare Workers, ssl: 'prefer' against a server that answers N to the SSLRequest ends in CONNECT_TIMEOUT instead of continuing without TLS.
The polyfill reads only the one-byte SSL reply (readFirst() in cf/polyfills.js) and never starts its read loop when the reply is not S, so the startup exchange that follows is never read.
Reproduced in real workerd at every compatibility date by the ssl-prefer-declined scenario: run 39149730488 (PR #150). src/ over workerd's node:net passes.
Fix on PR #151: readFirst() starts the read loop unless the reply is S, where the TLS upgrade starts its own.
changed the title [-]Cloudflare: ssl: 'prefer' times out when the server declines TLS[/-][+][FIXED in 4.6.0] Cloudflare: ssl: 'prefer' times out when the server declines TLS[/+]on Oct 21, 2026
Activity
fix(cf): pause and resume the polyfill socket, and keep reading after…
okomarov commentedon Oct 19, 2026
Fixed on main by 2cf42d9 (#151); ships in the next release.
chore: release 4.6.0-rc1
chore: release 4.6.0
okomarov commentedon Oct 21, 2026
Shipped in 4.6.0 (
npm install @steadybrew/[email protected]), unchanged from 4.6.0-rc1. The tests that cover it passed in the tag run.[-]Cloudflare: ssl: 'prefer' times out when the server declines TLS[/-][+][FIXED in 4.6.0] Cloudflare: ssl: 'prefer' times out when the server declines TLS[/+]