HomePhabricator

Fix race condition between starting HTTP server thread and setting EventBase()
3a174cd400c6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix race condition between starting HTTP server thread and setting EventBase()

Split StartHTTPServer into InitHTTPServer and StartHTTPServer to give
clients a window to register their handlers without race conditions.

Thanks @ajweiss for figuring this out.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Aug 28 2015, 14:55
deadalnixPushed on May 14 2017, 22:04
Parents
rABC6d2bc221463f: Document options for new HTTP/RPC server in --help
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC3a174cd400c6: Fix race condition between starting HTTP server thread and setting EventBase() (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Sep 3 2015, 08:59