Skip to content

schannel: refresh stream sizes after renegotiation - #22692

Closed
martin-fzi wants to merge 3 commits into
curl:masterfrom
martin-fzi:master
Closed

martin-fzi wants to merge 3 commits into
curl:masterfrom
martin-fzi:master

Conversation

@martin-fzi

Copy link
Copy Markdown

Reset cached Schannel stream sizes after renegotiation, since the renegotiated security context may use different record sizes. This forces the next send to re-query SECPKG_ATTR_STREAM_SIZES.

@github-actions github-actions Bot added TLS Windows Windows-specific labels Aug 26, 2026
@testclutch

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refreshes cached Schannel record sizes after TLS renegotiation.

Changes:

  • Clears cached stream-size attributes when renegotiation finishes.
  • Forces the next send to query the updated security context.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/vtls/schannel.c Outdated
Martin Dukek added 2 commits August 27, 2026 10:20
Re-query SECPKG_ATTR_STREAM_SIZES after successful renegotiation instead
of relying on schannel_send() to refresh the cached values later.

Suggested-by: Jay Satiro
Move the SECPKG_ATTR_STREAM_SIZES query to schannel_connect() completion,
where it runs after both initial negotiation and renegotiation. This
avoids relying on schannel_send() to refresh the cached values later.

Suggested-by: Jay Satiro
@jay jay closed this in ee4cb4a Aug 27, 2026
@jay

jay commented Aug 27, 2026

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TLS Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

4 participants