Skip to content

winsock: drop redundant version checks at initialization - #22754

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:drop-winsock-init-check
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:drop-winsock-init-check

Conversation

@vszakats

@vszakats vszakats commented Aug 30, 2026

Copy link
Copy Markdown
Member

All supported Windows versions (Vista+) support Winsock 2.2, therefore
these checks always succeed for a binary that loaded and started up
successfully.

Ref: https://learn.microsoft.com/windows/win32/api/winsock/nf-winsock-wsastartup

@github-actions github-actions Bot added the tests label Aug 30, 2026
@vszakats vszakats added Windows Windows-specific tidy-up and removed tests labels Aug 30, 2026
@vszakats
vszakats requested a balanced review from Copilot August 30, 2026 20:28

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.

🟡 Changes recommended

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Removes WinSock version validation from initialization paths.

Changes:

  • Simplifies WinSock initialization in libcurl.
  • Applies the same simplification to test servers.
File summaries
File Description
lib/system_win32.c Simplifies global WinSock initialization.
tests/server/util.c Simplifies test-server WinSock initialization.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

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

Comment thread lib/system_win32.c Outdated
Comment thread tests/server/util.c Outdated
@vszakats
vszakats marked this pull request as draft August 30, 2026 20:32
@github-actions github-actions Bot added the tests label Aug 30, 2026
@vszakats
vszakats requested a balanced review from Copilot August 30, 2026 20:39

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.

🟡 Changes recommended

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread tests/server/util.c
@vszakats
vszakats force-pushed the drop-winsock-init-check branch from bff71fe to 8e94489 Compare August 30, 2026 20:42
@vszakats
vszakats requested a balanced review from Copilot August 30, 2026 20:43

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.

🟢 Approval recommended

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@vszakats
vszakats marked this pull request as ready for review August 30, 2026 21:47
@vszakats vszakats changed the title winsock: drop redundant checks at initialization winsock: drop redundant verison checks at initialization Aug 30, 2026
@vszakats vszakats changed the title winsock: drop redundant verison checks at initialization winsock: drop redundant version checks at initialization Aug 30, 2026
All supported Windows versions (Vista+) support WinSock 2.2, therefore
these checks always succeed for a binary that loaded and started up
successfully.

Ref: https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-wsastartup
@vszakats
vszakats force-pushed the drop-winsock-init-check branch from 8e94489 to cb9d734 Compare August 31, 2026 09:45
@vszakats

Copy link
Copy Markdown
Member Author

@aisle-analyzer

@aisle-research-bot

aisle-research-bot Bot commented Aug 31, 2026

Copy link
Copy Markdown

🔒 Aisle Security Analysis

✅ Aisle scan complete — no security issues detected.

Aisle supplements but does not replace security review.

Last updated on: 2026-08-31T09:58:11Z

@vszakats vszakats closed this in 6a3ebdb Aug 31, 2026
@vszakats
vszakats deleted the drop-winsock-init-check branch August 31, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants