Bitcoin Forum
November 22, 2017, 06:05:28 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: WARNING: don't set maxconnections to 8 or lower in your config  (Read 374 times)
almightyruler
Legendary
*
Offline Offline

Activity: 1442


View Profile
September 23, 2013, 12:32:29 PM
 #1

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]
  Print  
 
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!