Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Oct 1, 2024
1 parent f118ce4 commit 0bf4d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eckit/net/TCPServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ TCPServer::~TCPServer() {

TCPSocket& TCPServer::accept(const std::string& message, int timeout, bool* connected) {

std::lock_guard<std::recursive_mutex> lock(acceptMutex_);

bind();

sockaddr_in from;
Expand Down
1 change: 1 addition & 0 deletions src/eckit/net/TCPServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class TCPServer : public TCPSocket, private NonCopyable {
private: // members
bool closeExec_;
Mutex mutex_;
std::recursive_mutex acceptMutex_;
};

//----------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 0bf4d56

Please sign in to comment.