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
c7b9ba3c
Commit
c7b9ba3c
authored
Sep 17, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reconnection process fixed when failure occurs during init phase
parent
85aa25e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
command.hpp
src/command.hpp
+2
-1
session.cpp
src/session.cpp
+8
-0
No files found.
src/command.hpp
View file @
c7b9ba3c
...
...
@@ -64,7 +64,8 @@ namespace zmq
class
own_t
*
object
;
}
own
;
// Attach the engine to the session.
// Attach the engine to the session. If engine is NULL, it informs
// session that the connection have failed.
struct
{
struct
i_engine
*
engine
;
unsigned
char
peer_identity_size
;
...
...
src/session.cpp
View file @
c7b9ba3c
...
...
@@ -178,6 +178,14 @@ void zmq::session_t::finalise ()
void
zmq
::
session_t
::
process_attach
(
i_engine
*
engine_
,
const
blob_t
&
peer_identity_
)
{
// If some other object (e.g. init) notifies us that the connection failed
// we need to start the reconnection process.
if
(
!
engine_
)
{
zmq_assert
(
!
engine
);
detached
();
return
;
}
// Check whether the required pipes already exist. If not so, we'll
// create them and bind them to the socket object.
reader_t
*
socket_reader
=
NULL
;
...
...
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