diff options
author | Martin Lucina <mato@kotelna.sk> | 2011-05-09 11:20:08 +0200 |
---|---|---|
committer | Martin Lucina <martin@lucina.net> | 2012-01-23 08:53:47 +0100 |
commit | f34d1599a651dd0b8feba2397f87629733988384 (patch) | |
tree | 07694c4ed96bf7b0ecadebc76d6da3f6c0125219 /src/fq.cpp | |
parent | 8eea9178e40abf16c0e469465a58fba3beaaf754 (diff) | |
parent | cbaa7cfa93893876e4fd8794b6ea39f4d245b6b5 (diff) |
Imported Debian patch 2.1.6-1debian/2.1.6-1
Diffstat (limited to 'src/fq.cpp')
-rw-r--r-- | src/fq.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -56,10 +56,9 @@ void zmq::fq_t::attach (reader_t *pipe_) void zmq::fq_t::terminated (reader_t *pipe_) { - // TODO: This is a problem with session-initiated termination. It breaks - // message atomicity. However, for socket initiated termination it's - // just fine. - zmq_assert (!more || pipes [current] != pipe_); + // Make sure that we are not closing current pipe while + // message is half-read. + zmq_assert (terminating || (!more || pipes [current] != pipe_)); // Remove the pipe from the list; adjust number of active pipes // accordingly. |