From 50532054c0bee3a1ff3324db10f3cdf7b44041e4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 8 Aug 2017 00:33:19 -0700 Subject: Added nn_compat code for option handling, fixed other bugs. Hop counts for REQ were busted (bad TTL), and imported the compat_reqtll test. At the same time, added code to nn_term to shut down completely, discarding sockets. (Note that some things, such as globals, may still be left around; that's ok.) --- src/protocol/reqrep/rep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocol/reqrep/rep.c') diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c index 049b1422..c7546182 100644 --- a/src/protocol/reqrep/rep.c +++ b/src/protocol/reqrep/rep.c @@ -312,7 +312,7 @@ nni_rep_pipe_recv_cb(void *arg) } // Move backtrace from body to header - hops = 0; + hops = 1; for (;;) { int end = 0; if (hops >= rep->ttl) { -- cgit v1.2.3-70-g09d2