From 52eaf600e5fe2acf5de6208a6a5a123dfcfe1fa2 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 9 Jul 2011 09:40:40 +0200 Subject: Drop outbound messages in XREP socket when SNDHWM is reached Signed-off-by: Martin Sustrik --- src/rep.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/rep.cpp') diff --git a/src/rep.cpp b/src/rep.cpp index ee67186..2ad494d 100644 --- a/src/rep.cpp +++ b/src/rep.cpp @@ -73,11 +73,8 @@ int zmq::rep_t::xrecv (msg_t *msg_, int flags_) return rc; if (!(msg_->flags () & msg_t::label)) break; - - // TODO: If the reply cannot be sent to the peer because - // od congestion, we should drop it. rc = xrep_t::xsend (msg_, flags_); - zmq_assert (rc == 0); + errno_assert (rc == 0); } request_begins = false; } -- cgit v1.2.3