Skip to content

Kestrel always seems to hang on exiting (Mac OSX) #539

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

Closed
govin opened this issue May 3, 2015 · 4 comments
Closed

Kestrel always seems to hang on exiting (Mac OSX) #539

govin opened this issue May 3, 2015 · 4 comments

Comments

@govin
Copy link

govin commented May 3, 2015

Pressing Cmd + K to exit kestrel causes it to hang forever. It will be useful to print to console on how to exit the kestrel web server after it starts. Also, it will be helpful to console print the port kestrel starts in instead of printing just a "started" message

@jensg
Copy link

jensg commented May 3, 2015

http://stackoverflow.com/questions/25712814/how-to-quit-asp-net-kestrel-web-server-on-a-mac

It doesn't really answer your question, but here is some help.

Look here for the port number: https://github.com/aspnet/Home/blob/dev/samples/latest/HelloMvc/project.json
and find the PID here:

lsof -i :5004

kill it:

kill -9 {PID}

@Tragetaschen
Copy link
Contributor

@adalinesimonian
Copy link

To tack on to @jensg's comment, if you want to do everything in one go, try:

kill `lsof -t -i:5000`

where 5000 is the port your project uses. (Those are backticks in the code sample, not apostrophes)

@davidfowl
Copy link
Member

Closing this as it's already filed on Kestrel

ryanbrandenburg pushed a commit that referenced this issue Nov 22, 2018
# This is the 1st commit message:

#539 Implement request body size limit

# The commit message #2 will be skipped:

# Check exception messages
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants