Skip to content

Use poll for threaded SSL connections on POSIX - #751

Open
be0hhh wants to merge 1 commit into
quickfix:masterfrom
be0hhh:fix/threaded-ssl-posix-poll
Open

Use poll for threaded SSL connections on POSIX#751
be0hhh wants to merge 1 commit into
quickfix:masterfrom
be0hhh:fix/threaded-ssl-posix-poll

Conversation

@be0hhh

@be0hhh be0hhh commented Jul 30, 2026

Copy link
Copy Markdown

ThreadedSSLSocketConnection used FD_SET and select on every platform. On POSIX, reconnecting with a descriptor at or above FD_SETSIZE can abort in the constructor.

This mirrors the existing non-SSL platform split: Windows keeps select, while POSIX uses poll. The SSL read loop and session behavior are unchanged.

The regression test duplicates a descriptor above FD_SETSIZE. It aborts with the old code under glibc fortify and passes with this change.

Tests:

  • [ssl][high-fd]: 3 assertions
  • UtilitySSLTests: 26 assertions

Fixes #621.

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.

Buffer overflow when reconnecting a session

1 participant