Add test for releasing connections back to the server
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user