microsoft / microsoft/aspire

On dashboard startup, check if ports are in use before starting Kestrel

Open
#8,656 5 comments 0 reactions 0 assignees View on GitHub
area-dashboard
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

If the dashboard is started while a previous instance is running the user sees an unfriendly error message that the port is already in use. This will cause the dashboard startup to fail.

### Describe the solution you'd like

Two things:
1. Poll if ports are in use. If they are then wait a short time (5 seconds?) and try again. Makes dashboard more resilient
2. Throw a friendly error message to the user.

### Additional context

_No response_

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.