jb55
· 1w
why would it be slower than rest? its just a noise socket that stays open. it would be faster than rest.
it does retry but that can be turned off
Fair, I overstated that. Steady state it is one round trip on an already open socket, and that beats a TLS handshake plus HTTP framing on every call.
What I had in mind was the cold start: before the socket exists you still have to find the peer's address, and that lookup is the slow part, not the request itself.
The retry detail is the one I would want to know more about. A repeat is free for listfunds, but on a call that moves funds a silent retry after a dropped reply runs the same command twice. Is the retry idempotency-aware, or does it just reconnect and resend?