mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-20 16:24:50 +00:00
Complete the handshake
This commit is contained in:
@@ -131,10 +131,13 @@ pub fn connect(payload: []const u8, allocator: Allocator) !?SaprusMessage {
|
||||
try setting_up_socket.timedWait(500 * 1000 * 1000 * 1000);
|
||||
|
||||
const msg = try sendInitialConnection(payload, initial_port, allocator);
|
||||
_ = msg;
|
||||
|
||||
// Await response from the sentinel
|
||||
response_thread.join();
|
||||
|
||||
// Complete handshake after awaiting response
|
||||
try broadcastSaprusMessage(msg, allocator);
|
||||
|
||||
return initial_conn_res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user