Unix Domain Sockets #5029

issue vikstrous openend this issue on October 2, 2014
  1. vikstrous commented at 4:39 am on October 2, 2014: none
    Does bitcoind support unix domain sockets? I don’t see any mention of it. If not, I would like to be able to use them for RPC instead of regular sockets. This will reduce the attack surface when there is not Internet communication needed.
  2. laanwj added the label RPC on Oct 2, 2014
  3. laanwj commented at 7:01 am on October 2, 2014: member
    boost::asio (the networking library used by RPC) supports “local” sockets, see http://www.boost.org/doc/libs/1_56_0/doc/html/boost_asio/overview/posix/local.html , that may be a place to start
  4. laanwj added the label Feature on Feb 16, 2016
  5. laanwj commented at 12:57 pm on March 18, 2017: member

    See

    • p2p: Bare minimum to support UNIX sockets #9979
    • UNIX sockets support for RPC #9919
  6. pinheadmz assigned pinheadmz on Jul 2, 2024
  7. pinheadmz commented at 3:03 pm on July 2, 2024: member

    Update: I attempted this but had an issue with libevent. There is a patch on libevent master now but looks like they don’t ship releases any more, and outside of depends builds, we can’t guarantee the user has the patched version installed. I’m not even sure how we update our depends builds to pull libevent master branch instead of a release.

    There seems to be some core dev support for replacing libevent entirely, and so I am working on that.

    The plan is to implement our own HTTP server using our cross-platform socket handlers in netbase.cpp and then write a loop similar to ThreadSocketHandler in CConnman to handle connections.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-04 13:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me