[erlang-questions] Unix domain sockets

Michael Truog <>
Fri Mar 21 05:32:46 CET 2014


I also am disappointed that unix domain sockets lack support, but I am also disappointed there are more internal checks to prevent their use now.  I have been able to graft on support, but it isn't pretty (since it needs to avoid the internal prim_inet checks):
https://github.com/CloudI/CloudI/blob/master/src/lib/cloudi_core/src/cloudi_services_external.erl#L1342-L1375
https://github.com/CloudI/CloudI/blob/master/src/lib/cloudi_core/cxx_src/cloudi_socket_drv.cpp

When I add unix domain sockets this way, I do get an internal ERTS thread stuck at 100% CPU (somehow stuck in a tight loop) for unknown reasons, but it works fine otherwise.

On 03/19/2014 04:13 PM, James wrote:
>
> five years later... and there is still no support for uds, only the uds_dist example, which does not even build on linux as it was evidently created for solaris.
>
>
>
>
> On Wednesday, March 4, 2009 5:23:21 AM UTC-5, rvirding wrote:
>
>     I just saw a lament in twitter that Erlang doesn't support Unix domain sockets. Is that so? If not is there a nice link to some documentation explaining that we do and how to do it?
>
>     Robert
>
> -- 
> Remember to send a copy to erlang (dot) questions (at) erlang (dot) org when posting.
> ---
> You received this message because you are subscribed to the Google Groups "Erlang Programming" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to  <mailto:>.
> To post to this group, send email to  <mailto:>.
> Visit this group at http://groups.google.com/group/erlang-programming.
> For more options, visit https://groups.google.com/d/optout.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140320/ef2bcf32/attachment.html>


More information about the erlang-questions mailing list