-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-hostingIncludes HostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Milestone
Description
When starting Kestrel on a port that is taken an exception is thrown. e.g.:
System.IO.IOException: Failed to bind to address https://127.0.0.1:5001: address already in use
Since this exception is not handled, the runtime calls abort
which (normally) generates a coredump (see https://github.com/dotnet/coreclr/issues/17929).
The behavior seems excessive for failing to bind the port. Maybe there should be a try/catch somewhere to turn this into a non-success process exit?
It may not be obvious these coredumps are being generated. And when seeing these dumps on their system, users may get the wrong impression dotnet failed in some bad way.
Metadata
Metadata
Assignees
Labels
area-hostingIncludes HostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions