From d1373792f7888f312cd7286fdf524a0bfe124846 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 23 Jun 2011 07:57:47 +0200 Subject: Outstanding requests dropped when requester dies (issue 190) So far the requests in req/rep pattern were delivered to and processed by worker even though the original requester was dead. Thus, the worker processing replies with noone to deliver results to. This optimisation drops requests in two situations: 1. Queued inbound requests in XREP socket when peer disconnects. 2. Queued outbound requests in XREQ when socket is closed. Signed-off-by: Martin Sustrik --- tests/Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 9238850..8ec3b0c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,8 @@ noinst_PROGRAMS = test_pair_inproc \ test_reqrep_inproc \ test_reqrep_tcp \ test_hwm \ - test_reqrep_device + test_reqrep_device \ + test_reqrep_drop if !ON_MINGW noinst_PROGRAMS += test_shutdown_stress \ @@ -17,13 +18,11 @@ endif test_pair_inproc_SOURCES = test_pair_inproc.cpp testutil.hpp test_pair_tcp_SOURCES = test_pair_tcp.cpp testutil.hpp - test_reqrep_inproc_SOURCES = test_reqrep_inproc.cpp testutil.hpp test_reqrep_tcp_SOURCES = test_reqrep_tcp.cpp testutil.hpp - test_hwm_SOURCES = test_hwm.cpp - test_reqrep_device_SOURCES = test_reqrep_device.cpp +test_reqrep_drop_SOURCES = test_reqrep_drop.cpp if !ON_MINGW test_shutdown_stress_SOURCES = test_shutdown_stress.cpp -- cgit v1.2.3