From e4c06bef18d7c47eaa3dd1641febb5fd882ec6e9 Mon Sep 17 00:00:00 2001 From: Constantin Rack Date: Fri, 25 Sep 2015 11:56:54 +0200 Subject: [PATCH] Problem: check_hwm() has different semantic of 'full' --- src/pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipe.cpp b/src/pipe.cpp index cff7b119..74c12e7b 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -533,6 +533,6 @@ void zmq::pipe_t::set_hwms_boost(int inhwmboost_, int outhwmboost_) bool zmq::pipe_t::check_hwm () const { - bool full = hwm > 0 && msgs_written - peers_msgs_read >= uint64_t (hwm - 1); + bool full = hwm > 0 && msgs_written - peers_msgs_read >= uint64_t (hwm); return( !full ); }