mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
fe3fb419fe
This patch adds a sockopt ZMQ_DELAY_ATTACH_ON_CONNECT, which if set to 1 will attempt to preempt this behavior. It does this by extending the use of the session_base to include in the outbound as well as the inbound pipe, and only associates the pipe with the socket once it receives the connected callback via a process_attach message. This works, and a test has been added to show so, but may introduce unexpected complications. The shutdown logic in this class has become marginally more awkward because of this, requiring the session to serve as the sink for both pipes if shutdown occurs with a still-connecting pipe in place. It is also possible there could be issues around flushing the messages, but as I could not directly think how to create such an issue I have not written any code with regards to that. The documentation has been updated to reflect the change, but please do check over the code and test and review.
72 lines
1.1 KiB
Plaintext
72 lines
1.1 KiB
Plaintext
syntax: glob # for hg-git users
|
|
Makefile
|
|
Makefile.in
|
|
configure
|
|
libtool
|
|
config
|
|
config.status
|
|
config.log
|
|
aclocal.m4
|
|
autom4te.cache
|
|
*.o
|
|
*.gcno
|
|
*.ncb
|
|
*.lo
|
|
*.loT
|
|
*.la
|
|
*.html
|
|
*.pdf
|
|
*.ps
|
|
.*
|
|
*~
|
|
.*~
|
|
tests/test_term_endpoint
|
|
tests/test_monitor
|
|
tests/test_last_endpoint
|
|
tests/test_pair_inproc
|
|
tests/test_pair_ipc
|
|
tests/test_pair_tcp
|
|
tests/test_reqrep_inproc
|
|
tests/test_reqrep_ipc
|
|
tests/test_reqrep_tcp
|
|
tests/test_shutdown_stress
|
|
tests/test_hwm
|
|
tests/test_timeo
|
|
tests/test_reqrep_device
|
|
tests/test_reqrep_drop
|
|
tests/test_sub_forward
|
|
tests/test_invalid_rep
|
|
tests/test_msg_flags
|
|
tests/test_ts_context
|
|
tests/test_connect_resolve
|
|
tests/test_connect_delay
|
|
tests/test_term_endpoint
|
|
src/platform.hpp*
|
|
src/stamp-h1
|
|
perf/local_lat
|
|
perf/local_thr
|
|
perf/remote_lat
|
|
perf/remote_thr
|
|
perf/inproc_lat
|
|
perf/inproc_thr
|
|
doc/*.1
|
|
doc/*.3
|
|
doc/*.7
|
|
doc/*.html
|
|
doc/*.xml
|
|
src/libzmq.pc
|
|
bin/
|
|
lib/
|
|
obj/
|
|
builds/msvc/*.suo
|
|
builds/msvc/*/*.user
|
|
builds/msvc/*/Debug
|
|
builds/msvc/*/Release
|
|
builds/redhat/zeromq.spec
|
|
foreign/openpgm/*
|
|
!foreign/openpgm/*.tar.bz2
|
|
!foreign/openpgm/*.tar.gz
|
|
!foreign/openpgm/Makefile.am
|
|
zeromq-*.tar.gz
|
|
zeromq-*.zip
|