Socket hosting model not working #1586

Closed
opened 2025-08-09 17:20:46 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @laskoviymishka on 6/2/2016

I faced issue with newly created Socket hosting model. It not respond for any requests. I not really sure what exact goes wrong. It could be enviroment issue or so.
My machine is win10 x64 with latest updates.

Steps to reproduce

  1. Open ReactGrid sample
  2. Specify Socket hosting model by adding services.AddNodeServices(new NodeServicesOptions { HostingModel = NodeHostingModel.Socket }); to your ConfigureServices method.
  3. Run dotnet run command
  4. Try to open localhost:5000

Expected behaivior

Page rendered

Actual behaivior

Page stuck in infinite load

_Note_:
If run under old fashion Http hosting model everything work perfect.

_UPD_:
after long long wait for response i recieve following error:

System.IO.IOException: Pipe is broken.
   at System.IO.Pipes.PipeStream.CheckWriteOperations()
   at System.IO.Pipes.PipeStream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.NodeServices.HostingModels.VirtualConnections.VirtualConnectionClient.<WriteAsync>d__19.MoveNext() in C:\dev\Source\Repos\NodeServices\src\Microsoft.AspNetCore.NodeServices\HostingModels\VirtualConnections\VirtualConnectionClient.cs:line 188
*Originally created by @laskoviymishka on 6/2/2016* I faced issue with newly created Socket hosting model. It not respond for any requests. I not really sure what exact goes wrong. It could be enviroment issue or so. My machine is win10 x64 with latest updates. # Steps to reproduce 1. Open ReactGrid sample 2. Specify Socket hosting model by adding `services.AddNodeServices(new NodeServicesOptions { HostingModel = NodeHostingModel.Socket });` to your `ConfigureServices` method. 3. Run `dotnet run` command 4. Try to open _localhost:5000_ # Expected behaivior Page rendered # Actual behaivior Page stuck in infinite load **_Note**_: If run under old fashion `Http` hosting model everything work perfect. **_UPD**_: after long long wait for response i recieve following error: ``` System.IO.IOException: Pipe is broken. at System.IO.Pipes.PipeStream.CheckWriteOperations() at System.IO.Pipes.PipeStream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) at Microsoft.AspNetCore.NodeServices.HostingModels.VirtualConnections.VirtualConnectionClient.<WriteAsync>d__19.MoveNext() in C:\dev\Source\Repos\NodeServices\src\Microsoft.AspNetCore.NodeServices\HostingModels\VirtualConnections\VirtualConnectionClient.cs:line 188 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1586
No description provided.