~ We enabled io_set_extended_errors(), so when accept() fails, our * listener callback is called with a NULL conn. */
| 692 | /*~ We enabled io_set_extended_errors(), so when accept() fails, our |
| 693 | * listener callback is called with a NULL conn. */ |
| 694 | static 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. */ |
no test coverage detected