mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-20 13:27:36 +02:00
```
> wss = BindWebSecureSocket('localhost', wss_port)
tests/test_connection.py:4584:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_connection.py:4570: in __init__
self.ws.connect("wss://" + hostname + ":" + str(port))
../../../.cache/pypoetry/virtualenvs/cln-meta-project-AqJ9wMix-py3.8/lib/python3.8/site-packages/websocket/_core.py:256: in connect
self.sock, addrs = connect(
../../../.cache/pypoetry/virtualenvs/cln-meta-project-AqJ9wMix-py3.8/lib/python3.8/site-packages/websocket/_http.py:145: in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
../../../.cache/pypoetry/virtualenvs/cln-meta-project-AqJ9wMix-py3.8/lib/python3.8/site-packages/websocket/_http.py:232: in _open_socket
raise err
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
addrinfo_list = [(<AddressFamily.AF_INET6: 10>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('::1', 45521, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 45521))]
sockopt = [], timeout = None
def _open_socket(addrinfo_list, sockopt, timeout):
err = None
for addrinfo in addrinfo_list:
family, socktype, proto = addrinfo[:3]
sock = socket.socket(family, socktype, proto)
sock.settimeout(timeout)
for opts in DEFAULT_SOCKET_OPTION:
sock.setsockopt(*opts)
for opts in sockopt:
sock.setsockopt(*opts)
address = addrinfo[4]
err = None
while not err:
try:
> sock.connect(address)
E ConnectionRefusedError: [Errno 111] Connection refused
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
||
|---|---|---|
| .. | ||
| data | ||
| fuzz | ||
| plugins | ||
| vectors | ||
| autogenerate-rpc-examples.py | ||
| benchmark.py | ||
| conftest.py | ||
| fixtures.py | ||
| rkls_github_canned_server.py | ||
| test_askrene.py | ||
| test_bookkeeper.py | ||
| test_cln_rs.py | ||
| test_clnrest.py | ||
| test_closing.py | ||
| test_connection.py | ||
| test_db.py | ||
| test_gossip.py | ||
| test_invoices.py | ||
| test_misc.py | ||
| test_mkfunding.py | ||
| test_onion.py | ||
| test_opening.py | ||
| test_pay.py | ||
| test_plugin.py | ||
| test_reckless.py | ||
| test_renepay.py | ||
| test_runes.py | ||
| test_splice.py | ||
| test_splicing.py | ||
| test_splicing_disconnect.py | ||
| test_splicing_insane.py | ||
| test_wallet.py | ||
| test_xpay.py | ||
| utils.py | ||
| valgrind-suppressions.txt | ||