Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f39974e6
Commit
f39974e6
authored
Jul 11, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl1292
Try to remove rare timeouts by Increased timeout in CpcClient and mgmapi
parent
33fe23e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ndb/src/common/util/socket_io.cpp
ndb/src/common/util/socket_io.cpp
+2
-2
ndb/src/mgmclient/CpcClient.cpp
ndb/src/mgmclient/CpcClient.cpp
+2
-2
No files found.
ndb/src/common/util/socket_io.cpp
View file @
f39974e6
...
@@ -93,8 +93,8 @@ readln_socket(NDB_SOCKET_TYPE socket, int timeout_millis,
...
@@ -93,8 +93,8 @@ readln_socket(NDB_SOCKET_TYPE socket, int timeout_millis,
FD_ZERO
(
&
readset
);
FD_ZERO
(
&
readset
);
FD_SET
(
socket
,
&
readset
);
FD_SET
(
socket
,
&
readset
);
timeout
.
tv_sec
=
1
;
timeout
.
tv_sec
=
(
timeout_millis
/
1000
)
;
timeout
.
tv_usec
=
0
;
// 1 s
timeout
.
tv_usec
=
(
timeout_millis
%
1000
)
*
1000
;
const
int
selectRes
=
select
(
socket
+
1
,
&
readset
,
0
,
0
,
&
timeout
);
const
int
selectRes
=
select
(
socket
+
1
,
&
readset
,
0
,
0
,
&
timeout
);
if
(
selectRes
!=
1
){
if
(
selectRes
!=
1
){
return
-
1
;
return
-
1
;
...
...
ndb/src/mgmclient/CpcClient.cpp
View file @
f39974e6
...
@@ -478,7 +478,7 @@ SimpleCpcClient::connect() {
...
@@ -478,7 +478,7 @@ SimpleCpcClient::connect() {
if
(
::
connect
(
cpc_sock
,
(
struct
sockaddr
*
)
&
sa
,
sizeof
(
sa
))
<
0
)
if
(
::
connect
(
cpc_sock
,
(
struct
sockaddr
*
)
&
sa
,
sizeof
(
sa
))
<
0
)
return
-
1
;
return
-
1
;
cpc_in
=
new
SocketInputStream
(
cpc_sock
);
cpc_in
=
new
SocketInputStream
(
cpc_sock
,
60000
);
cpc_out
=
new
SocketOutputStream
(
cpc_sock
);
cpc_out
=
new
SocketOutputStream
(
cpc_sock
);
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment