Add test for releasing connections back to the server

This commit is contained in:
2025-08-22 13:10:26 -04:00
parent 7860e720bd
commit 1a85e91113
9 changed files with 168 additions and 42 deletions

View File

@@ -2,7 +2,6 @@
#include "arena_allocator.hpp"
#include "connection_handler.hpp"
#include <atomic>
#include <cassert>
#include <cstring>
#include <deque>
@@ -352,8 +351,6 @@ private:
// Networking interface - only accessible by Server
int readBytes(char *buf, size_t buffer_size);
bool writeBytes();
void tsan_acquire();
void tsan_release();
// Direct access methods for Server
int getFd() const { return fd_; }
@@ -374,9 +371,4 @@ private:
// Whether or not to close the connection after completing writing the
// response
bool closeConnection_{false};
// TSAN support for epoll synchronization
#if __has_feature(thread_sanitizer)
std::atomic<int> tsan_sync_;
#endif
};