Skip to content

Add backoff to proxy Accept errors #7

Description

@Luqueee

Problem

In internal/proxy/proxy.go:30-41, every non-closed listener error is logged and immediately retried.

Persistent errors such as EMFILE or ENFILE can cause a tight CPU/logging loop, making an already degraded process less stable.

Acceptance criteria

  • Add bounded exponential backoff for repeated Accept failures.
  • Reset the backoff after a successful accept.
  • Continue returning cleanly for net.ErrClosed.
  • Add a deterministic test using a listener that repeatedly returns an error.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions