Skip to content

josh-proxy shutdown: try longer and reduce slack#49

Open
RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:josh-proxy-shutdown
Open

josh-proxy shutdown: try longer and reduce slack#49
RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:josh-proxy-shutdown

Conversation

@RalfJung
Copy link
Copy Markdown
Member

@RalfJung RalfJung commented May 9, 2026

Instead of a single 100ms wait, let's do 10ms waits and give it a total of a second. This is more robust against slow shutdowns, while also being quicker if shutdown happens to be fast.

This matches what we do on startup when we wait for the port to become available.

@RalfJung RalfJung force-pushed the josh-proxy-shutdown branch from 65f8e12 to 83ca1b3 Compare May 10, 2026 12:36
@RalfJung
Copy link
Copy Markdown
Member Author

I also added a SIGTERM to the shutdown loop which seems to be needed for newer josh versions.

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