Fix epoll dispatch dropping INotify events, ConsoleServer self-deadlock, and add TLS SNI support
- INotify/Thread epoll dispatch was silently dropping every live core::INotify event (an isKnownINotify registry fixes it) - this had broken mail delivery for over a week, masked by routine restarts. - TCPServer::lock self-deadlocked every admin-console connection via a plain std::mutex being re-entered; switched to recursive_mutex. - TLS.cpp/h: SNI-based certificate selection (addSNIContext), the groundwork for multi-tenant TLS (qualityiron.vegas alongside barant.com on one APIServer process). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d058322cc6
commit
1d3d30cd05
8 files changed
+222
-55
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ namespace core {
|
||||
// TCPServer::sessions became shared_ptr-owned - see its own doc
|
||||
// comment) despite connectionRequest()/removeFromSessionList()
|
||||
// both mutating this same vector under `lock` from other threads.
|
||||
std::lock_guard<std::mutex> guard(lock);
|
||||
std::lock_guard guard(lock);
|
||||
for(auto &session : sessions)
|
||||
((ConsoleSession *)session.get())->writeLog(out);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user