Skip to content

appsec ext: retry on connection refused#2860

Merged
cataphract merged 1 commit intomasterfrom
glopes/conn-refused
Sep 18, 2024
Merged

appsec ext: retry on connection refused#2860
cataphract merged 1 commit intomasterfrom
glopes/conn-refused

Conversation

@cataphract
Copy link
Copy Markdown
Contributor

@cataphract cataphract commented Sep 18, 2024

Description

After sidecar is launched but before the helper has a chance to create and listen to the unix socket, the extension may try to connect and fail. We retried already if the socket did not exist. But if there was a socket file from a previous run, the error is ECONNREFUSED. So retry in that case as well.

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

Copy link
Copy Markdown
Contributor

@Anilm3 Anilm3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cataphract cataphract merged commit 4ea2324 into master Sep 18, 2024
@cataphract cataphract deleted the glopes/conn-refused branch September 18, 2024 14:30
@github-actions github-actions Bot added this to the 1.4.0 milestone Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants