mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
BUG#11132 Connections stuck in CLOSE_WAIT
In 4.1 (it is different in 5.0), we do not use the mgm connection after fetching the configuration (and if we did, we would have to have calls to check the connection and reconnect if needed - in case the mgm server had restarted) so we can disconnect after first use. This means we won't have connections stuck in CLOSE_WAIT when the mgm server shuts down. ndb/src/common/mgmcommon/ConfigRetriever.cpp: Disconnect from management server after configuration is fetched.
This commit is contained in:
parent
91a7d4e737
commit
b78072633d
1 changed files with 3 additions and 1 deletions
|
|
@ -138,7 +138,9 @@ ConfigRetriever::getConfig(NdbMgmHandle m_handle){
|
|||
setError(CR_ERROR, ndb_mgm_get_latest_error_desc(m_handle));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
ndb_mgm_disconnect(m_handle);
|
||||
|
||||
return conf;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue