Skip to content

Is there a reason for overriding the default asyncio policy on Windows? #1220

Closed
@polys

Description

@polys

Checklist

  • There are no similar issues or pull requests for this yet.
  • I discussed this idea on the community chat and feedback is positive.

Is your feature related to a problem? Please describe.

While developing on Windows, my app being served by uvicorn keeps raising ValueError: too many file descriptors in select(), which I understand is related to the suboptimal asyncio.WindowsSelectorEventLoopPolicy.

Python 3.8 changed the default to ProactorEventLoop on Windows but your code seems to override this.

Is there a reason for this?

Describe the solution you would like.

Ideally, all the too many file descriptors in select() exceptions go away.

Describe alternatives you considered

Additional context

This isn't an issue at all when running my app in a Linux container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions