HomePhabricator

Make HTTP server shutdown more graceful
5e0c22135600Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Make HTTP server shutdown more graceful

Shutting down the HTTP server currently breaks off all current requests.
This can create a race condition with RPC stop command, where the calling
process never receives confirmation.

This change removes the listening sockets on shutdown so that no new
requests can come in, but no longer breaks off requests in progress.

Meant to fix #6717.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Sep 24 2015, 15:29
deadalnixPushed on May 14 2017, 22:04
Parents
rABCad57b310bac4: Merge pull request #6724
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC5e0c22135600: Make HTTP server shutdown more graceful (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Sep 28 2015, 13:06