Skip to content

Conversation

@ellahathaway
Copy link
Member

This is another attempt to resolve dotnet/dnceng#4798.

The timeout support added in #15503 did not prevent the process from hanging. After doing some research, I learned that the code is likely continuing to hang because the process object is not being disposed of properly and because the standarderror & standardoutput streams might be blocking if they fill up.

To avoid this issue, I've added support to properly dispose of the process and support to read the streams asynchronously.

@ellahathaway ellahathaway requested a review from mmitche February 12, 2025 19:34
@ellahathaway ellahathaway changed the title Attempt to fix process hanging issue by properly disposing of process and reading streams asynchronously Attempt to fix SignTool hanging by properly disposing of process and reading streams asynchronously Feb 12, 2025
@ellahathaway ellahathaway merged commit c7b4cf2 into dotnet:main Feb 12, 2025
11 checks passed
@ellahathaway ellahathaway deleted the signtool.handleprocess branch February 12, 2025 20:45
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.

Mac signing timeout: dotnet-arcade-validation-official/main #20250115.2

2 participants