Comments (4)
@ptschip Bitnodes uses up to 2 connection slots:
-
crawl.py - Connects to your node and disconnects after completing a handshake. This repeats after the full network snapshot is taken which happens approximately every 5 minutes given the current network size.
-
ping.py - Maintains open connection with your node to get latency data. The latency data is used to generate data for the leaderboard https://bitnodes.21.co/nodes/leaderboard/ and it is also presented in the individual node status page, e.g. https://bitnodes.21.co/nodes/62.63.157.78-8333/
From your description, it sounds like you are talking about ping.py? If so, this is currently an expected behavior from the crawler.
from bitnodes.
ok, yeah i see it actually disconnecting after about 30 seconds...what was happening is that when we have no connection slots available the least useful connection gets evicted...so during that 30 second or so interval your connection gets evicted. I do wonder though why it's taking 30 seconds...i see the ping getting done but the connection still open for a while..are you sure you'r disconnecting right after the ping? Or maybe the ping received on your side from us is coming back much slower than the ping that we receive from you? Ok, that's probably what it is...but still seems like long time.
EDIT: I'm watching it a little more, sometimes it's about 15 seconds to get the disconnect, so it varies...I think yesterday it must have been a much slower day....Anyway, it looks like it's working the way you say it should. Sorry for the bother, just trying to understand.
from bitnodes.
Taking a look through your code a bit, I'm wondering if the longer than expected connection times are due to the KeepAlive that you use and maybe you're not issuing an explicit disconnect and just allowing the connections to time out? What I see is that the ping, at least the one we receive from you, usually takes about 1 second but then it take 15 to 30 seconds for the connection to drop.
from bitnodes.
@ptschip Connection from ping.py will drop only when there is network issue. It is not expected to disconnect from your node, i.e. it takes up 1 connection slot indefinitely.
from bitnodes.
Related Issues (20)
- Break down Nodes by full user-agent? HOT 2
- I want to record everytime getaddr response, How can I do that? HOT 1
- install-full-node script is outdated HOT 4
- Feature request: Enable connection to Zerotier Earth enabled nodes HOT 1
- Unresolved reference 'xxx' HOT 1
- is the code for the public api available? HOT 1
- "Check Node" says 'Enter a valid IP address.' HOT 1
- Is Bitnodes mirrored via Onion or I2P? HOT 2
- "Check Node" says 'Enter a valid IP address.' HOT 1
- Bitnode checks on bitcoin node running behind tor HOT 2
- Bitnode checks on bitcoin node over tor: unreachable HOT 1
- Why does it report my node is down when it is online? HOT 11
- Bitnodes reporting inflated IPV4 nodes HOT 2
- Checksum failed HOT 2
- API & Named Fields HOT 1
- Some nodes appear as down but they aren't HOT 6
- Request was throttled HOT 2
- Add Bitcoin Knots option to install-full-node.sh HOT 1
- bitnodes sending sendaddrv2 after verack HOT 1
- v2 Protocol HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitnodes.