Jump to content

Server - Listen to unix socket


Guest plexman

Recommended Posts

Guest plexman

AFAIK Emby Server on .NET Core uses kestrel http server, I've seen on the Microsoft documentation (just reading) of the kestrel server that it is posible to bind to an Unix socket to improve performance with reverse proxies such as Nginx. I'm wondering (I'm not a developer) if this is easy done or would be much nonsense effort to implement it. PHP-FPM for example uses a Unix socket with Nginx.

 

Reference: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?tabs=aspnetcore2x (Bind to an Unix socket)

 

A good location to bind it would be /var/run :)

 

Thanks team!

Link to comment
Share on other sites

We actually are not using kestrel for now, we are using a home grown socket-based implementation. I read that in .net core 2.1 kestrel will be rewritten to move away from libuv and use sockets instead, and the code is actually very similar to what we're already doing, so I think we are doing it in the best possible way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...