From 68ab0996b4e8443ca248cad3091d1d51485acb52 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Jan 2007 17:19:27 +1100 Subject: [PATCH] round up Transporter connect timeout ndb/src/common/transporter/Transporter.cpp: change so timeout is rounded up to nearest second --- ndb/src/common/transporter/Transporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndb/src/common/transporter/Transporter.cpp b/ndb/src/common/transporter/Transporter.cpp index d1e88e303e7..20b6be8ce26 100644 --- a/ndb/src/common/transporter/Transporter.cpp +++ b/ndb/src/common/transporter/Transporter.cpp @@ -84,7 +84,7 @@ Transporter::Transporter(TransporterRegistry &t_reg, new SocketAuthSimple("ndbd", "ndbd passwd")); - m_socket_client->set_connect_timeout(m_timeOutMillis/1000); + m_socket_client->set_connect_timeout((m_timeOutMillis+999)/1000); } DBUG_VOID_RETURN; }