Skip to content

Commit

Permalink
Fix ERROR connecting in train command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishad-M-I-M committed Aug 27, 2023
1 parent 2a07562 commit 9ea52a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/frontend/JasmineGraphFrontEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,8 @@ void *frontendservicesesion(std::string masterIP, int connFd, SQLiteDBInterface
jasminGraphTrainingInitiator->initiateTrainingLocally(graphID, trainData);

}
write(connFd, DONE.c_str(), FRONTEND_COMMAND_LENGTH);
write(connFd, "\r\n", 2);

} else if (line.compare(IN_DEGREE) == 0) {
frontend_logger.log("Calculating In Degree Distribution", "info");
Expand Down
4 changes: 2 additions & 2 deletions src/server/JasmineGraphServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3081,12 +3081,12 @@ void JasmineGraphServer::initiateCommunication(std::string graphID, std::string

if (i==0) {

workerThreads[threadID] = std::thread(initiateServer,"localhost", serverPort,
workerThreads[threadID] = std::thread(initiateServer,workerInstance.hostname, serverPort,
serverDataPort,trainingArgs,fl_clients, to_string(i));
threadID++;
}

workerThreads[threadID] = std::thread(initiateClient,"localhost", serverPort, serverDataPort,trainingArgs +
workerThreads[threadID] = std::thread(initiateClient,workerInstance.hostname, serverPort, serverDataPort,trainingArgs +
" " + to_string(i), fl_clients, to_string(i));
threadID++;

Expand Down

0 comments on commit 9ea52a1

Please sign in to comment.