restbed icon indicating copy to clipboard operation
restbed copied to clipboard

Support for unix sockets in server and client

Open alex1891 opened this issue 6 years ago • 7 comments

Hi, is it possible to use unix domain sockets for server binding and client connections? If not is it planned to integrate this in future?

Thank you! Best reguards Alex

alex1891 avatar May 21 '19 07:05 alex1891

We don't have this in the roadmap currently. Can you flesh out the use case? Why are locally bound sockets not sufficient?

ben-crowhurst avatar May 23 '19 08:05 ben-crowhurst

locally bound sockets are reachable from every process that can access the localhost - unix domain sockets can easily be protected with file permissions. The other reason is, that we don´t have to take care about free ports for additional services. The device is a embedded realtime device that uses a microservice architecture so workarounds like docker are not possible.

alex1891 avatar May 23 '19 08:05 alex1891

Hi @ben-crowhurst , are their any news regarding this topic?

alex1891 avatar Oct 21 '19 14:10 alex1891

@alex1891 This feature will make it into the 5.0 release. We're in the process of refactoring the API to allow transports layers to be injected into the service.

ben-crowhurst avatar Feb 08 '20 02:02 ben-crowhurst

Hey @ben-crowhurst , what is the current state of this topic? I thought implementation was planned for 07/2020?

alex1891 avatar Mar 17 '21 09:03 alex1891

Hi @ben-crowhurst are there any news regarding the topic of @alex1891? I am also interested.

Thanks

albrecht-j avatar Apr 27 '21 06:04 albrecht-j

This has yet to be implemented in the public domain. The continual delay of mainlining ASIO to std::networking is hindering 5.0.

Why are we waiting for std::networking? so we don't have to implement multiple versions for various operating systems.

ben-crowhurst avatar Apr 27 '21 06:04 ben-crowhurst