Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Fixed shutdown hanging #47

Closed
wants to merge 1 commit into from
Closed

Fixed shutdown hanging #47

wants to merge 1 commit into from

Conversation

davidfowl
Copy link
Member

  • Added Stopping event to KestrelThread so that
    incoming connections get a chance to gracefully close
    before disposing the event loop
  • Call _post.Dispose instead of UnReference. Sometimes
    Dispose would happen on the finalizer thread and _queueCloseHandle
    would be null.
    Shutting the server down causes a hang #9

@davidfowl
Copy link
Member Author

/cc @lodejard

- Added Stopping event to KestrelThread so that
incoming connections get a chance to gracefully close
before disposing the event loop
- Call _post.Dispose instead of UnReference. Sometimes
Dispose would happen on the finalizer thread and _queueCloseHandle
would be null.

#9
@borgdylan
Copy link

ping

@dnfclas
Copy link

dnfclas commented May 11, 2015

@davidfowl, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants