mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Adjust SSL context generation for Server:
The creation of self-signed certificates slows down the command line client when launched repeatedly during unit test. * Contexts are no longer generated for the command line client * A port with no secure protocols generates an empty context
This commit is contained in:
@@ -712,8 +712,11 @@ public:
|
||||
//
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
serverHandler_->setup (setup_ServerHandler(getConfig(), std::cerr),
|
||||
m_journal);
|
||||
{
|
||||
auto setup = setup_ServerHandler(getConfig(), std::cerr);
|
||||
setup.makeContexts();
|
||||
serverHandler_->setup (setup, m_journal);
|
||||
}
|
||||
|
||||
// VFALCO NOTE Unfortunately, in stand-alone mode some code still
|
||||
// foolishly calls overlay(). When this is fixed we can
|
||||
|
||||
Reference in New Issue
Block a user