Martin Karlgren
Martin Karlgren
We have the same problem. We noticed that the task actually completes successfully after 15 minutes. The [DefaultNodeConnectionTimeout](https://github.com/dotnet/msbuild/blob/6e97308dc4652452833d8ee1ca1d0c1cf5d17ad3/src/Shared/CommunicationsUtilities.cs#L208) is 900 seconds -- possibly related?
Setting `MSBUILDNODECONNECTIONTIMEOUT="30000"` in the environment does indeed reduce the waiting time, and the task finishes successfully after 30 seconds instead of 15 minutes.
@ladipro, sure, files below. (This was a build with a 30000 ms timeout, I noticed that in the *_1794.txt file the timeout is hit for one thread.) [MSBuild_CommTrace_PID_1794.txt](https://github.com/dotnet/sdk/files/14000580/MSBuild_CommTrace_PID_1794.txt) [MSBuild_CommTrace_PID_1767.txt](https://github.com/dotnet/sdk/files/14000581/MSBuild_CommTrace_PID_1767.txt) [MSBuild_CommTrace_PID_1709.txt](https://github.com/dotnet/sdk/files/14000582/MSBuild_CommTrace_PID_1709.txt)...