From d7efd5f3ee8e27d1f350b8de42b3d5b8e3a4d6ba Mon Sep 17 00:00:00 2001 From: Andrew Payne Date: Thu, 7 Nov 2024 14:56:47 -0500 Subject: [PATCH] fixes Compute-282 --- src/rhino.compute/ComputeChildren.cs | 1 + src/rhino.compute/ReverseProxy.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rhino.compute/ComputeChildren.cs b/src/rhino.compute/ComputeChildren.cs index 9a216c4f..2c3d0c15 100644 --- a/src/rhino.compute/ComputeChildren.cs +++ b/src/rhino.compute/ComputeChildren.cs @@ -190,6 +190,7 @@ static void LaunchCompute(Queue> processQueue, bool waitUnti } var startInfo = new ProcessStartInfo(pathToCompute); + startInfo.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = ""; //required for debugging compute.geometry via Visual Studio var rhinoProcess = Process.GetCurrentProcess(); Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); string commandLineArgs = $"-port:{port} -childof:{rhinoProcess.Id}"; diff --git a/src/rhino.compute/ReverseProxy.cs b/src/rhino.compute/ReverseProxy.cs index c96f58ef..3dc68c1a 100644 --- a/src/rhino.compute/ReverseProxy.cs +++ b/src/rhino.compute/ReverseProxy.cs @@ -103,12 +103,12 @@ Task LaunchChildren(HttpRequest request, HttpResponse response) int parentProcessId = System.Convert.ToInt32(request.Query["parent"]); if (Program.IsParentRhinoProcess(parentProcessId)) { - for(int i=0; i