Skip to content

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

Merged
Kobzol merged 1 commit into
rust-lang:mainfrom
RalfJung:josh-proxy-shutdown
May 15, 2026
Merged

josh-proxy shutdown: try longer and reduce slack#49
Kobzol merged 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.

@RalfJung RalfJung force-pushed the josh-proxy-shutdown branch from 83ca1b3 to 65f8e12 Compare May 15, 2026 06:57
@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.

I have un-done this again since josh upstream is being fixed (josh-project/josh#2012).
@Kobzol I think this is good to go now :)

Copy link
Copy Markdown
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks!

@Kobzol Kobzol merged commit edfc69c into rust-lang:main May 15, 2026
2 checks passed
@RalfJung RalfJung deleted the josh-proxy-shutdown branch May 17, 2026 06:25
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.

2 participants