CC: | Michael Ivanchenko <ivanchenko.michael.work [...] gmail.com> |
Subject: | Typo in Sphinx::Search |
Date: | Thu, 16 Nov 2017 19:15:10 +0200 |
To: | bug-Sphinx-Search [...] rt.cpan.org |
From: | Michael Ivanchenko <ivanchenko.michael.work [...] gmail.com> |
Hi, I found a typo in `Sphinx-Search-0.29`.
The parameter `connectretries` is set in `sub SetConnectRetries`:
https://metacpan.org/source/JJSCHUTZ/Sphinx-Search-0.29/lib/Sphinx/Search.pm#L597
but it's not checked in `sub _ProcessRequest`:
https://metacpan.org/source/JJSCHUTZ/Sphinx-Search-0.29/lib/Sphinx/Search.pm#L782
So, there are always two attempts made in `sub _ProcessRequest` in case of
a connection error regardless of what is set in `sub SetConnectRetries`.
The `_connectretries` parameter is checked, but not the `connectretries`.
Could you rename `connectretries` to `_connectretries` please?
Is there a need to add a test for that?
And if so, which one - the unit or the functional one?
Thank you.