Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry on connection refused #21

Open
mthuurne opened this issue Oct 25, 2019 · 0 comments
Open

Retry on connection refused #21

mthuurne opened this issue Oct 25, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@mthuurne
Copy link
Member

In an automated test, it's likely APE is started at roughly the same time as the server under test. In that setup, whether the server binds its socket first or APE sends its initial request first depends on how fast the server starts up. If APE is first, it will get a "connection refused" error and it will report the request as failed.

It would be more useful if APE would not give up immediately, but instead wait a bit and then retry. This is how it handles HTTP 503 responses already. However, it currently retries 503 an unlimited number of times, which is a bad idea, since if the 503 is the result of a bug, the test run would never end.

@mthuurne mthuurne added the enhancement New feature or request label Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant