Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl+C not work as excepted for aiohttp on windows #3004

Closed
LanceLovereading opened this issue May 17, 2018 · 3 comments
Closed

Ctrl+C not work as excepted for aiohttp on windows #3004

LanceLovereading opened this issue May 17, 2018 · 3 comments
Labels
invalid This doesn't seem right outdated

Comments

@LanceLovereading
Copy link

Expected behaviour

When the aiohttp standalone server is running, pressing Ctrl + C should stop it.

Actual behaviour

It seems nothing has happend when I press Ctrl + C. However, after I press Ctrl + C, if I try to open the url in browser, the server will stop.
So I supposed Ctrl+C does not work immediately, it is just registered and need to be triggered by an http request to the server.

Your environment

Windows 10
Python 3.6.5
aiohttp 3.2.1

@gyermolenko
Copy link
Contributor

hi @LanceLovereading
Can you try your experiment with this snippet?

import asyncio
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.sleep(100))

@asvetlov asvetlov added the invalid This doesn't seem right label May 17, 2018
@asvetlov
Copy link
Member

It is a well known asyncio problem, nothing aiohttp specific and nothing that could be done on the project side.

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right outdated
Projects
None yet
Development

No branches or pull requests

3 participants