Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
9703dd80
Commit
9703dd80
authored
Apr 23, 2013
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #548 from hintjens/master
Fixed issue LIBZMQ-526
parents
0880d5b8
710f38f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
tcp_connecter.cpp
src/tcp_connecter.cpp
+16
-7
No files found.
src/tcp_connecter.cpp
View file @
9703dd80
...
...
@@ -251,7 +251,7 @@ int zmq::tcp_connecter_t::open ()
zmq
::
fd_t
zmq
::
tcp_connecter_t
::
connect
()
{
// Async connect ha
ve finished. Check whether an error occured.
// Async connect ha
s finished. Check whether an error occurred
int
err
=
0
;
#if defined ZMQ_HAVE_HPUX
int
len
=
sizeof
(
err
);
...
...
@@ -266,9 +266,13 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
#ifdef ZMQ_HAVE_WINDOWS
zmq_assert
(
rc
==
0
);
if
(
err
!=
0
)
{
if
(
err
==
WSAECONNREFUSED
||
err
==
WSAETIMEDOUT
||
err
==
WSAECONNABORTED
||
err
==
WSAEHOSTUNREACH
||
err
==
WSAENETUNREACH
||
err
==
WSAENETDOWN
)
if
(
err
==
WSAECONNREFUSED
||
err
==
WSAETIMEDOUT
||
err
==
WSAECONNABORTED
||
err
==
WSAEHOSTUNREACH
||
err
==
WSAENETUNREACH
||
err
==
WSAENETDOWN
||
err
==
WSAEINVAL
)
return
retired_fd
;
wsa_assert_no
(
err
);
}
...
...
@@ -280,9 +284,14 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
err
=
errno
;
if
(
err
!=
0
)
{
errno
=
err
;
errno_assert
(
errno
==
ECONNREFUSED
||
errno
==
ECONNRESET
||
errno
==
ETIMEDOUT
||
errno
==
EHOSTUNREACH
||
errno
==
ENETUNREACH
||
errno
==
ENETDOWN
);
errno_assert
(
errno
==
ECONNREFUSED
||
errno
==
ECONNRESET
||
errno
==
ETIMEDOUT
||
errno
==
EHOSTUNREACH
||
errno
==
ENETUNREACH
||
errno
==
ENETDOWN
||
errno
==
EINVAL
);
return
retired_fd
;
}
#endif
...
...
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