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 2d3ce4d commit 4c1ac8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fdb5/remote/server/ServerConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ void ServerConnection::initialiseConnections() {
errorMsg = "Error retrieving client protocol version";
}

std::cout << "Connection from: " << endpointFromClient << " sessionId" << clientSession << std::endl;

if (errorMsg.empty() && !LibFdb5::instance().remoteProtocolVersion().check(remoteProtocolVersion, false)) {
std::stringstream ss;
ss << "FDB server version " << fdb5_version_str() << " - remote protocol version not supported:" << std::endl;
Expand Down Expand Up @@ -234,6 +236,7 @@ void ServerConnection::initialiseConnections() {
if (single_) {
dataEndpoint = endpointFromClient;
} else {
std::lock_guard<std::mutex> lock(dataPortMutex_);
dataSocket_.reset(new eckit::net::EphemeralTCPServer(selectDataPort()));
ASSERT(dataSocket_->socket() != -1);

Expand Down
2 changes: 2 additions & 0 deletions src/fdb5/remote/server/ServerConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ class ServerConnection : public Connection, public Handler {

private:

std::mutex dataPortMutex_;

// data connection
std::unique_ptr<eckit::net::EphemeralTCPServer> dataSocket_;
size_t dataListener_;
Expand Down

0 comments on commit 4c1ac8d

Please sign in to comment.