-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is your feature request related to a problem? Please describe.
Currently, when using systemd activation, the ASP.NET Core only listens on the first passed socket (SD_LISTEN_FDS_START, equal to 3). This prevents using multiple listening sockets in systemd socket definition. systemd passes the number of file descriptors via %LISTEN_FDS%, but currently the code doesn't take this into account.
Describe the solution you'd like
The issue is quite easy to fix, in fact I hacked a simple inline solution to this issue, but I believe that it should be improved at the source.
I'm willing to provide a PR along the lines of the solution described above, but first I would like to know if there is any interest in this.
I understand that a backport to 2.1/3.1 is quite unlikely, but I have to ask if it is possible (given that the changes are probably going to be very localized and we're stuck on 2.1/3.1 for the near future).
If backport is not possible, I would also like to ask if us providing a nuget package with "improved" version of UseSystemd is OK.
Since I did some previous work on related functionality, tagging @halter73 because he helped me last time with review and integration.