• KIU Shueng Chuan's avatar
    Problem: zmq_stream doc is confusing regarding ZMQ_SNDMORE flag · 53402156
    KIU Shueng Chuan authored
    Solution: fix it.
    
    The documentation first states that the ZMQ_SNDMORE flag is ignored on
    data frames. Then it states that omitting the ZMQ_SNDMORE flag has
    consequences. The example HTTP server code further muddies the situation
    with a similar comment.
    
    The implementation of ZMQ_STREAM only accepts two-part messages.
    The first part is an identity frame while the second and last part is
    the data frame.
    
    As with any multipart message, all parts except the last need the
    ZMQ_SNDMORE flag. The second and last part would normally omit the
    ZMQ_SNDMORE flag to mark the end of the multipart message.
    
    However, the ZMQ_STREAM implementation ignores the ZMQ_SNDMORE flag on
    the data frame rather than requiring that it be omitted. The latter
    behaviour would have been more consistent with the other ZeroMQ
    sockets.
    53402156
Name
Last commit
Last update
RELICENSE Loading commit data...
builds Loading commit data...
doc Loading commit data...
include Loading commit data...
m4 Loading commit data...
packaging Loading commit data...
perf Loading commit data...
src Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Dockerfile Loading commit data...
Doxygen.cfg Loading commit data...
FindSodium.cmake Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.cygwin.md Loading commit data...
README.doxygen.md Loading commit data...
README.md Loading commit data...
acinclude.m4 Loading commit data...
appveyor.yml Loading commit data...
autogen.sh Loading commit data...
branding.bmp Loading commit data...
ci_build.sh Loading commit data...
ci_deploy.sh Loading commit data...
configure.ac Loading commit data...
installer.ico Loading commit data...
version.sh Loading commit data...