dotnet / dotnet/Scaffolding

ScaffoldingServer: Accept may hang the server

Open
#1,764 1 comment 0 reactions 0 assignees View on GitHub
area-scaffolding customer-reported
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

## File a bug

The method `ScaffoldingServer .Accept` hangs the server until a connection comes. Which may be forever if things go wrong on the other side.

### Include your code

```C#
_socket = await _server.AcceptSocketAsync();
```

### Include stack traces

```
```

### Include provider and version information


Microsoft.VisualStudio.Web.CodeGeneration.Design/Microsoft.DotNet.MSIdentity version:

1.63.2

Target framework: (e.g. .NET 5.0)

6.0.1

Operating system:

Linux x64 5.15.7-1-default

IDE: (e.g. Visual Studio 2019 16.3)

1.63.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.