Author

Topic: WARNING: don't set maxconnections to 8 or lower in your config (Read 480 times)

legendary
Activity: 2268
Merit: 1092
I changed maxconnections to 8 for all 24 of my altcoin daemons, restarted them, then suddenly inbound connections no longer worked.

Lots of head scratching but I finally found the reason in the source: the client reserves 8 connections for outbound peers, even if they're not all actually connected. This value is hard coded. So if you specify maxconnections as 8 or lower, that leaves zero slots remaing for inbound connections. Any connect attempt by a peer is immediately closed.

I was trying to save a bit of bandwidth but ended up half killing off peering. Fixed now.
Jump to: