mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
Increase TCP socket backlog.
This commit is contained in:
committed by
Christian Decker
parent
063149079e
commit
e613ae2d8e
@@ -1164,7 +1164,7 @@ static struct io_plan *connect_activate(struct io_conn *conn,
|
|||||||
for (size_t i = 0; i < tal_count(daemon->listen_fds); i++) {
|
for (size_t i = 0; i < tal_count(daemon->listen_fds); i++) {
|
||||||
/* On Linux, at least, we may bind to all addresses
|
/* On Linux, at least, we may bind to all addresses
|
||||||
* for IPv4 and IPv6, but we'll fail to listen. */
|
* for IPv4 and IPv6, but we'll fail to listen. */
|
||||||
if (listen(daemon->listen_fds[i].fd, 5) != 0) {
|
if (listen(daemon->listen_fds[i].fd, 64) != 0) {
|
||||||
if (daemon->listen_fds[i].mayfail)
|
if (daemon->listen_fds[i].mayfail)
|
||||||
continue;
|
continue;
|
||||||
status_failed(STATUS_FAIL_INTERNAL_ERROR,
|
status_failed(STATUS_FAIL_INTERNAL_ERROR,
|
||||||
|
|||||||
Reference in New Issue
Block a user