Skip to content

Default asyncore_use_poll to True - #514

Closed
deronnax wants to merge 1 commit into
Pylons:mainfrom
deronnax:audit/poll-default
Closed

deronnax wants to merge 1 commit into
Pylons:mainfrom
deronnax:audit/poll-default

Conversation

@deronnax

@deronnax deronnax commented Oct 4, 2026 •

Copy link
Copy Markdown

Summary

  • Implements audit suggestion Using ident keyword breaks the adjustments #5: default asyncore_use_poll to True in Adjustments.
  • Updates documented default in docs/arguments.rst and asserts the default in test_default_listen.
  • wasasyncore.loop already uses poll2 when use_poll is set and select.poll exists, and falls back to select otherwise (including Windows).

Test plan

  • tox -e py314 -- tests/test_adjustments.py --no-cov

Note for reviewers

Behavior change for deployments that relied on the implicit select() default; set asyncore_use_poll=false to restore previous behavior.

Made with Cursor

Implemented by Composer 2.5; reviewed and directed by a human maintainer.

Avoid select()'s 1024 fd limit by default; wasyncore falls back when
poll is unavailable. Audit suggestion Pylons#5.

Co-authored-by: Cursor <cursoragent@cursor.com>
@deronnax deronnax closed this Oct 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