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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4889ea23
Commit
4889ea23
authored
Jan 24, 2007
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix hpux build problem and some ndb connect errors being missed
parent
d3462b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ndb/src/common/util/SocketClient.cpp
ndb/src/common/util/SocketClient.cpp
+2
-2
No files found.
ndb/src/common/util/SocketClient.cpp
View file @
4889ea23
...
@@ -109,7 +109,7 @@ SocketClient::connect(const char *toaddress, unsigned short toport)
...
@@ -109,7 +109,7 @@ SocketClient::connect(const char *toaddress, unsigned short toport)
struct
timeval
tval
;
struct
timeval
tval
;
int
r
;
int
r
;
bool
use_timeout
;
bool
use_timeout
;
socklen_t
len
;
SOCKOPT_OPTLEN_TYPE
len
;
int
flags
;
int
flags
;
if
(
m_sockfd
==
NDB_INVALID_SOCKET
)
if
(
m_sockfd
==
NDB_INVALID_SOCKET
)
...
@@ -168,7 +168,7 @@ SocketClient::connect(const char *toaddress, unsigned short toport)
...
@@ -168,7 +168,7 @@ SocketClient::connect(const char *toaddress, unsigned short toport)
if
(
FD_ISSET
(
m_sockfd
,
&
rset
)
||
FD_ISSET
(
m_sockfd
,
&
wset
))
if
(
FD_ISSET
(
m_sockfd
,
&
rset
)
||
FD_ISSET
(
m_sockfd
,
&
wset
))
{
{
len
=
sizeof
(
r
);
len
=
sizeof
(
r
);
if
(
getsockopt
(
m_sockfd
,
SOL_SOCKET
,
SO_ERROR
,
&
r
,
&
len
)
<
0
)
if
(
getsockopt
(
m_sockfd
,
SOL_SOCKET
,
SO_ERROR
,
&
r
,
&
len
)
<
0
||
r
)
{
{
// Solaris got an error... different than others
// Solaris got an error... different than others
NDB_CLOSE_SOCKET
(
m_sockfd
);
NDB_CLOSE_SOCKET
(
m_sockfd
);
...
...
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