Only start a listener for processes that will actually receive connection requests. Tools such as orte-submit always initiate connections and thus do not need to start a listener.
Этот коммит содержится в:
родитель
10e3ac4cd5
Коммит
89c80b2294
@ -615,7 +615,7 @@ static int component_available(void)
|
|||||||
/* Start all modules */
|
/* Start all modules */
|
||||||
static int component_startup(void)
|
static int component_startup(void)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc = ORTE_SUCCESS;
|
||||||
|
|
||||||
opal_output_verbose(2, orte_oob_base_framework.framework_output,
|
opal_output_verbose(2, orte_oob_base_framework.framework_output,
|
||||||
"%s TCP STARTUP",
|
"%s TCP STARTUP",
|
||||||
@ -626,10 +626,19 @@ static int component_startup(void)
|
|||||||
mca_oob_tcp_module.api.init();
|
mca_oob_tcp_module.api.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* start the listening thread/event */
|
/* if we are a daemon/HNP, or we are a standalone app,
|
||||||
if (ORTE_SUCCESS != (rc = orte_oob_tcp_start_listening())) {
|
* then it is possible that someone else may initiate a
|
||||||
ORTE_ERROR_LOG(rc);
|
* connection to us. In these cases, we need to start the
|
||||||
|
* listening thread/event. Otherwise, we will be the one
|
||||||
|
* initiating communication, and there is no need for
|
||||||
|
* a listener */
|
||||||
|
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_DAEMON ||
|
||||||
|
orte_standalone_operation) {
|
||||||
|
if (ORTE_SUCCESS != (rc = orte_oob_tcp_start_listening())) {
|
||||||
|
ORTE_ERROR_LOG(rc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user