Hi
I have taken the liberty to go ahead and implement a solution based on
the points in this discussion and pushed it in hrev49591.
On 28.08.2015 17:00, Axel Dörfler wrote:
Am 28/08/2015 um 14:18 schrieb Ingo Weinhold:
Yes, but this makes creating the port by the launch_daemonIt makes the communication channel available a lot earlier. That
completely superfluous, doesn't it?
seemed to be one of your concerns.
You are not supposed to find launch_daemon created ports by name.You got it the wrong way around: Since some existing uses of
They may have any name; the launch_daemon chooses them.
get_port_info(), as Michael wrote, it may not be possible to have
those ports be created by the launch daemon. Obviously we can
adjust the code in the repository and on HaikuPorts, but
introducing new rules for existing APIs may break preexisting
applications.
get_port_info() is not an issue (at least it won't with the correct
team ID). find_name() cannot be used to find a port that has been
created by the launch_daemon, nor is it supposed to be used for this.
We had three named ports in our system, one for the app_server, and
two for the registrar. None of those was bound to any compatibility
issues, so I'm not sure what you are referring to here.
Though, what do we actually get? The crash example doesn't sound
that convincing.
It probably only moves the complexity of reconnecting from the
client to the server. Unless the client is an API which implements
this correctly, I think that's a good thing. For stateless
communication, it actually just removes complexity. Also a good thing
in my book :-)