File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4193,6 +4193,7 @@ PQconnectdb_safe(const char *conninfo, int timeout)
41934193 {
41944194 MTM_ELOG (WARNING , "Could not connect to '%s': %s" ,
41954195 safe_connstr , PQerrorMessage (conn ));
4196+ return conn ;
41964197 }
41974198
41984199 if (timeout != 0 )
@@ -4202,13 +4203,15 @@ PQconnectdb_safe(const char *conninfo, int timeout)
42024203 if (socket_fd < 0 )
42034204 {
42044205 MTM_ELOG (WARNING , "Referee socket is invalid" );
4206+ return conn ;
42054207 }
42064208
4207- if (setsockopt (socket_fd , SOL_SOCKET , SO_RCVTIMEO ,
4208- (char * )& tv , sizeof (tv )) < 0 )
4209+ if (pg_setsockopt (socket_fd , SOL_SOCKET , SO_RCVTIMEO ,
4210+ (char * )& tv , sizeof (tv ), MtmUseRDMA ) < 0 )
42094211 {
42104212 MTM_ELOG (WARNING , "Could not set referee socket timeout: %s" ,
42114213 strerror (errno ));
4214+ return conn ;
42124215 }
42134216 }
42144217
You can’t perform that action at this time.
0 commit comments