Move activeConnections to Server

This commit is contained in:
2025-08-21 21:55:19 -04:00
parent 9ee23fdc46
commit 5e8fe590c1
8 changed files with 12 additions and 268 deletions

View File

@@ -36,7 +36,9 @@ ConnectionRegistry::~ConnectionRegistry() {
for (size_t fd = 0; fd < max_fds_; ++fd) {
delete connections_[fd];
}
munmap(connections_, aligned_size_);
if (munmap(connections_, aligned_size_) == -1) {
perror("munmap");
}
}
}