core-lightning/contrib
Christian Decker 8cad3ffeac pyln: Work around the socket path length on Linux OSs
Some Linux OSs impose a length limit on the path a Unix socket may have. This
is not an issue in `lightningd` since we `chdir()` into that directory before
opening the socket, however in pyln this became a problem for some tests,
since we use absolute paths in the testing framework. It's also a rather
strange quirk to expose to users.

This patch introduces a `UnixSocket` abstraction that attempts to work around
these limitations by aliasing the directory containing the socket into
`/proc/self/fd` and then connecting using that alias.

It was inspired by Open vSwitch code here https://github.com/openvswitch/ovs/blob/master/python/ovs/socket_util.py

Signed-off-by: Christian Decker <@cdecker>
2020-01-02 16:05:52 +01:00
..
init systemd: After=network-online.target 2019-08-20 20:14:36 +02:00
plugins contrib: Make cowsay answer 'init' 2019-09-30 00:20:16 +00:00
pylightning pyln: Migrate implementation from pylightning to pyln-client 2019-11-12 21:23:55 +01:00
pyln-client pyln: Work around the socket path length on Linux OSs 2020-01-02 16:05:52 +01:00
pyln-proto pyln: Split pylightning into multiple pyln modules 2019-09-30 13:27:37 +02:00
pyln-testing pyln: Bump versions of pyln-client and pyln-testing 2019-12-31 16:43:04 +01:00
bootstrap-node.sh contrib: make stricter shellcheck from Ubuntu 18.04 happy 2019-08-23 08:22:28 -07:00
Dockerfile.builder Update bitcoin-core version 2019-12-22 12:42:56 +01:00
Dockerfile.builder.fedora Update bitcoin-core version 2019-12-22 12:42:56 +01:00
Dockerfile.builder.i386 Update bitcoin-core version 2019-12-22 12:42:56 +01:00
lightning-cli.bash-completion bash-completion: include underscores 2019-07-09 13:23:14 +02:00
linuxarm32v7.Dockerfile Update bitcoin-core version 2019-12-22 12:42:56 +01:00
linuxarm64v8.Dockerfile Update bitcoin-core version 2019-12-22 12:42:56 +01:00
short_channel_id-to-txid.sh Add compability to current formalism to short_channel_id-to-txid.sh 2019-10-04 00:38:52 +00:00
startup_regtest.sh contrib: fixup documentation of l1/2-log 2019-11-13 03:31:20 +00:00