Bitcoin Forum
December 04, 2016, 12:07:11 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Why Does The Bitcoin Server Create ~5x Fewer Connections Than Regular Bitcoin?  (Read 1892 times)
gigabytecoin
Sr. Member
****
Offline Offline

Activity: 280


View Profile
May 07, 2011, 01:29:48 AM
 #1

I have noticed this for a few days now...

And yes I have forwarded my ports Tongue (In fact, I don't have any to forward, I am not behind a router).

Whenever I double click on (I'm using windows) the bitcoin client, it pops up and begins acquiring connections quite quickly, up to about 50 or 60 connections in less than a minute I would say.

When I run bitcoin.exe -server from the command line, the GUI pops up like normal but it only ever reaches 10-15 connections maximum, even after waiting for an hour or two.

Anybody else notice this? Anybody know why?

Notes: Windows 7, 32 Bit
1480810031
Hero Member
*
Offline Offline

Posts: 1480810031

View Profile Personal Message (Offline)

Ignore
1480810031
Reply with quote  #2

1480810031
Report to moderator
1480810031
Hero Member
*
Offline Offline

Posts: 1480810031

View Profile Personal Message (Offline)

Ignore
1480810031
Reply with quote  #2

1480810031
Report to moderator
1480810031
Hero Member
*
Offline Offline

Posts: 1480810031

View Profile Personal Message (Offline)

Ignore
1480810031
Reply with quote  #2

1480810031
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480810031
Hero Member
*
Offline Offline

Posts: 1480810031

View Profile Personal Message (Offline)

Ignore
1480810031
Reply with quote  #2

1480810031
Report to moderator
1480810031
Hero Member
*
Offline Offline

Posts: 1480810031

View Profile Personal Message (Offline)

Ignore
1480810031
Reply with quote  #2

1480810031
Report to moderator
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 751


View Profile
May 07, 2011, 08:42:00 PM
 #2

Really shouldn't happen, I see no reason why.  Have you tried just opening alternating ones repeatedly for a while to make sure its not a first/second time thing?

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
grue
Global Moderator
Legendary
*
Offline Offline

Activity: 1932



View Profile
May 07, 2011, 10:01:26 PM
 #3

10-15 connections means your port is properly forwarded, and other clients can contact you.

It is pitch black. You are likely to be eaten by a grue.

Tired of annoying signature ads? Ad block for signatures
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
May 08, 2011, 12:19:18 AM
 #4

The networking code is the same in either case, so it was almost certainly just a coincidence and you got unlucky with the peers you connected to running -server from the command line.

How often do you get the chance to work on a potentially world-changing project?
Cryptoman
Hero Member
*****
Offline Offline

Activity: 728



View Profile
May 08, 2011, 05:06:50 AM
 #5

When I run bitcoin.exe -server from the command line, the GUI pops up like normal but it only ever reaches 10-15 connections maximum, even after waiting for an hour or two.

Anybody else notice this? Anybody know why?

Notes: Windows 7, 32 Bit

I seem to recall someone else mentioning this earlier and attributing it to Windows.  I don't know much about Windows networking code, but is there some sort of adjustable limitation placed on services?  My detached bitcoind process running under Linux currently has 114 connections.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 751


View Profile
May 08, 2011, 12:37:05 PM
 #6

I seem to recall someone else mentioning this earlier and attributing it to Windows.  I don't know much about Windows networking code, but is there some sort of adjustable limitation placed on services?  My detached bitcoind process running under Linux currently has 114 connections.
As gavin said, its the same code either way.  My bet is the OP opened it once noticed quite a few connections, closed it, and opened bitcoin one last time with -server causing him to lose all the previous connections.  Even after waiting a while, those connections didn't come back because the clients who did have his node in their known node list lost their connection they won't make a new one and others just didn't connect to him. 

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
gigabytecoin
Sr. Member
****
Offline Offline

Activity: 280


View Profile
May 08, 2011, 07:23:03 PM
 #7

I seem to recall someone else mentioning this earlier and attributing it to Windows.  I don't know much about Windows networking code, but is there some sort of adjustable limitation placed on services?  My detached bitcoind process running under Linux currently has 114 connections.
As gavin said, its the same code either way.  My bet is the OP opened it once noticed quite a few connections, closed it, and opened bitcoin one last time with -server causing him to lose all the previous connections.  Even after waiting a while, those connections didn't come back because the clients who did have his node in their known node list lost their connection they won't make a new one and others just didn't connect to him. 

Update: 3 full days later of running bitcoin.exe -server and I am only up to 43 connections. It climbs steadily...

BUT, if I were to simply open bitcoin.exe by double clicking on it, without adding the -server command... I would be up to 50-60 connections within a matter of minutes.

Something about this doesn't seem right.

I am running Windows 7 Ultimate, 32 bit.
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 751


View Profile
May 08, 2011, 07:25:17 PM
 #8

if I were to
Have you actually tried?

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
gigabytecoin
Sr. Member
****
Offline Offline

Activity: 280


View Profile
May 09, 2011, 04:08:39 AM
 #9

if I were to
Have you actually tried?

Yes. I have tried. And I will try again right now to double check.

Just now... my internet connection cut out for a few minutes... I plummeted from about 40 connections (after 3-4 days running bitcoin.exe -server non stop) down to ~10 connections, and hours later I am still only at 12 connections.

Once again... I have shut down by bitcoin.exe -server and opened bitcoin.exe by double clicking on it... after just 20-30 seconds I am up to 20 connections - where as it has taken me hours to get up to 12 connections using bitcoin.exe -server

I assure you, I am not crazy!
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 751


View Profile
May 09, 2011, 09:13:06 AM
 #10

Yes. I have tried. And I will try again right now to double check.
Hmmmm...just doesn't seem possible.  They do run the exact same networking code.  Has to be something circumstantial but I have no idea what it would be...oh well, unless you don't have the 8 outgoing, you are fine.

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
JBDive
Full Member
***
Offline Offline

Activity: 238


View Profile
June 17, 2011, 02:58:19 AM
 #11

Pretty much the same issue here. I launch bitcoin -server and I will jump to 120 connections. Within 2 minutes that has dropped to 60-70, in a few days to around 50 then after a week maybe 5.

This just happened tonight with it dropping to 5 so I restarted it, initial was 117 connections, dropped to 66 then bounced back up to mid 80's then 90's, all within 5 minutes. I am behind a firewall and I do have ports open on both that Firewall and Windows 7 firewall.
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!