Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: almightyruler on September 23, 2013, 12:32:29 PM



Title: WARNING: don't set maxconnections to 8 or lower in your config
Post by: almightyruler on September 23, 2013, 12:32:29 PM
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.