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
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING6d2bc221463f: Document options for new HTTP/RPC server in --help
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rSTAGING3a174cd400c6: 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