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

Function accept_failed

connectd/connectd.c:694–703  ·  view source on GitHub ↗

~ We enabled io_set_extended_errors(), so when accept() fails, our * listener callback is called with a NULL conn. */

Source from the content-addressed store, hash-verified

692/*~ We enabled io_set_extended_errors(), so when accept() fails, our
693 * listener callback is called with a NULL conn. */
694static struct io_plan *accept_failed(struct daemon *daemon)
695{
696 static bool accept_logged = false;
697 status_broken_once(&accept_logged,
698 "accepting incoming fd failed: %s",
699 strerror(errno));
700 /* Maybe free up some fds by closing something. */
701 close_random_connection(daemon);
702 return NULL;
703}
704
705/*~ When we get a direct connection in we set up its network address
706 * then call handshake.c to set up the crypto state. */

Callers 2

connection_inFunction · 0.85
websocket_connection_inFunction · 0.85

Calls 1

close_random_connectionFunction · 0.85

Tested by

no test coverage detected