Bitcoin Forum
July 18, 2018, 11:48:24 AM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: WARNING: don't set maxconnections to 8 or lower in your config  (Read 379 times)
Offline Offline

Activity: 1652
Merit: 1000

View Profile
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.
Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!