Skip to content

Commit

Permalink
* SYNC [core] nanonng sync
Browse files Browse the repository at this point in the history
* MDF Fix conlficts
Signed-off-by: wayne <[email protected]>
Signed-off-by: jaylin <[email protected]>
  • Loading branch information
JaylinYu committed Dec 28, 2023
1 parent bcc61a0 commit f4b5b9a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/compat/nanomsg/nn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,6 @@ nn_setsockopt(int s, int nnlevel, int nnopt, const void *valp, size_t sz)
// (e.g. with legacy tests).
(void) nng_socket_set_ms(sid, NNG_OPT_REQ_RESENDTICK, 10);
}

return (0);
}

Expand Down
1 change: 1 addition & 0 deletions src/core/nng_impl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//
// Copyright 2023 Garrett D'Amore <[email protected]>
// Copyright 2023 Staysail Systems, Inc. <[email protected]>
// Copyright 2017 Capitar IT Group BV <[email protected]>
//
Expand Down
1 change: 0 additions & 1 deletion src/sp/protocol/reqrep0/req.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,6 @@ static nni_option req0_sock_options[] = {
.o_get = req0_sock_get_resend_tick,
.o_set = req0_sock_set_resend_tick,
},

// terminate list
{
.o_name = NULL,
Expand Down
2 changes: 1 addition & 1 deletion src/sp/protocol/reqrep0/req_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ test_req_resend_reconnect(void)
// the retry from loss of our original peer.
NUTS_PASS(nng_socket_set_ms(req, NNG_OPT_REQ_RESENDTIME, 60 * SECOND));
// And make sure the tick runs faster than our timeout!
NUTS_PASS(nng_socket_set_ms(req, NNG_OPT_REQ_RESENDTICK, SECOND/10));
NUTS_PASS(nng_socket_set_ms(req, NNG_OPT_REQ_RESENDTICK, SECOND / 10));

NUTS_MARRY(rep1, req);

Expand Down

0 comments on commit f4b5b9a

Please sign in to comment.