MCPcopy Create free account
hub / github.com/ElementsProject/lightning / close_peer_io_timeout

Function close_peer_io_timeout

connectd/multiplex.c:90–94  ·  view source on GitHub ↗

We try to send the final messages, but if buffer is full and they're * not reading, we have to give up. */

Source from the content-addressed store, hash-verified

88/* We try to send the final messages, but if buffer is full and they're
89 * not reading, we have to give up. */
90static void close_peer_io_timeout(struct peer *peer)
91{
92 status_peer_unusual(&peer->id, CI_UNEXPECTED "Peer did not close, forcing close");
93 io_close(peer->to_peer);
94}
95
96static void close_subd_timeout(struct subd *subd)
97{

Callers

nothing calls this directly

Calls 1

io_closeFunction · 0.85

Tested by

no test coverage detected