Merge pull request #1592 from c-rack/fix-test

Solution: full is if number of msg is greater than hwm, not greater than hwm - 1
This commit is contained in:
Pieter Hintjens 2015-09-25 12:26:33 +02:00
commit 79daac119a

View File

@ -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 );
}