Comments (14)
Yes, that's probably the Key parameter that I set to 1, I though that it was about the passKey/token but probably is the client identifier. I will review also Alan's implementation and I will fix those as well.
from bitswarm.
I edited my comment - I completely forgot I set that as the key value in the PHP file lol
I have added handling in my announce for this client exclusively now. Much easier server-side testing.
if ($_SERVER['HTTP_USER_AGENT'] == 'BitSwarm/2.4.0') {
$keys = array(
'downloaded' => true,
'uploaded' => true,
'info_hash' => true,
'peer_id' => true,
'port' => true,
'no_peer_id' => false,
'ip' => false,
'numwant' => false,
'event' => false,
'left' => true,
'compact' => false,
'key' => 1,
);
}
Excellent, I have been reviewing that project very well - a lot of support spec
from bitswarm.
Nice! So does the new http tracker works as expected now?
from bitswarm.
Accurate stats in readings, no downloading though, so technically no its not working. Im adding code to Tracker.cs to report a 32bit hex back in key param, and see if it picks up. Im not sure if the seedbox(libtorrent) is blocking or what but it comes up as 1 choked peer and stays on there. Very odd.
from bitswarm.
Yesterday, I was able to use the private torrent that you sent. It was downloading with 10Mbits/s.
from bitswarm.
Thats wonderful! I sent you a so-so torrent, its hardly the best as I realized later but thats awesome! So as it stands it works, maybe I'll work off my IP and try that way.
Client reports strange data back compared to the others.
Screenshot of data I get back:
https://gcdn.pbrd.co/images/4oDg4J6jJlYt.jpg
from bitswarm.
Check this one. I will update the agent and version of bitswarm with similar way (also for the Key) and let me know if that works for you.
from bitswarm.
Maybe this will work for a basic key
var clientkey = new Random();
if (Regex.IsMatch(uri.Query, "token=", RegexOptions.IgnoreCase) || Regex.IsMatch(uri.Query, "passkey=", RegexOptions.IgnoreCase))
query += "&key=" + string.Format("{0:X7}", clientkey.Next(0x1000000));
I'll check that out
from bitswarm.
I get this error which I'm not sure if you should return
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'clientkey' at row 1d14:failure reason17:Cant insert peer.e
from bitswarm.
I'm in my table right now, the column is VARCHAR - 8 characters
I'll increase it to 50
from bitswarm.
For udp it's an Int32 but for http might be a string, not sure, there is no documentation
from bitswarm.
Client is working!! That is awesome :D
I'll download libtorrent project and see how it reports out to trackers these things
from bitswarm.
Check another one here
CREATE TABLE `peers` (
...
`key` varchar(20) NOT NULL DEFAULT '',
...
from bitswarm.
Related libtorrent code here
from bitswarm.
Related Issues (15)
- 'System.IO.FileNotFoundException' in BencodeNET.dll HOT 1
- Multiple Process Instances - Threading Bug? HOT 7
- Firewall Rule - Inbound HOT 11
- HttpClient Options HOT 4
- magnet link hangs HOT 5
- Created Torrent can't be read by most torrent apps
- Question about multiple program transport stream HOT 1
- CPU high usage for unix HOT 1
- Broken clients/peers could cause an infinite SHA1 failed validation HOT 1
- Torrent stream HOT 2
- Other Purposes? HOT 1
- Is there an option to limit the download speed? HOT 1
- Slow download speeds HOT 4
- Private Torrents do not connect! HOT 12
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 bitswarm.