Skip to content

(CI only)#3

Open
steve-hb wants to merge 2 commits into
mainfrom
bugfix/port-wrapping
Open

(CI only)#3
steve-hb wants to merge 2 commits into
mainfrom
bugfix/port-wrapping

Conversation

@steve-hb

Copy link
Copy Markdown

Summary

Type of change

  • Bug fix (fix:)
  • New feature (feat:)
  • Breaking change (feat!: or fix!:)
  • Docs / chore

AWS Compatibility

Checklist

  • ./mvnw test passes locally
  • New or updated integration test added
  • Commit messages follow Conventional Commits

steve-hb added 2 commits May 19, 2026 13:37
The previous modular counter (basePort + offset % range) wrapped
silently when allocations exceeded the configured range, handing the
same port to two RuntimeApiServers. The second listen() either failed
with EADDRINUSE or bound on top of a draining socket (in both cases
producing a runtime API the Lambda bootstrap could not reach).

PortAllocator now tracks in-use ports in a Set and throws
IllegalStateException on exhaustion. RuntimeApiServerFactory releases
the port on start failure; ContainerLauncher releases it after the
server is stopped.
@steve-hb steve-hb force-pushed the bugfix/port-wrapping branch from 0393e19 to ac0f80e Compare May 19, 2026 12:18
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.

1 participant