Skip to content

Fix retries count being treated as retries+2#21

Open
yossizahn wants to merge 1 commit into
mafintosh:masterfrom
yossizahn:master
Open

Fix retries count being treated as retries+2#21
yossizahn wants to merge 1 commit into
mafintosh:masterfrom
yossizahn:master

Conversation

@yossizahn

Copy link
Copy Markdown

There was a bug that caused the retries option to actually be treated as retries+2...

@mafintosh

Copy link
Copy Markdown
Owner

can you add a test for this? mb made a socket that does not reply and see that it gets "retries" messages

@yossizahn

yossizahn commented Dec 21, 2019

Copy link
Copy Markdown
Author

I am not sure anymore... I was interpreting retries as the total number of tries. Actually it looks like the intention was "the number of retries"... so the total number of tries will be retries+1. If so the code was only off by one.
Is that right?
(I think that calling the option tries or something and having it refer to the total number of tries may be clearer, any thoughts?)

and see that it gets "retries" messages

You don't seem to emit "retries" events at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants