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.
-
vikstrous commented at 4:39 AM on October 2, 2014: none
- laanwj added the label RPC on Oct 2, 2014
-
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
- laanwj added the label Feature on Feb 16, 2016
- pinheadmz assigned pinheadmz on Jul 2, 2024
-
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.cppand then write a loop similar toThreadSocketHandlerinCConnmanto handle connections.