Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

使用 --input links.txt批量添加Magnet连接时会导致Xunlei断开连接 #54

Closed
honglei opened this Issue · 11 comments

2 participants

@honglei

命令: python lixian_cli.py add --input links.txt
文件内容:
magnet:?xt=urn:btih:AD43D28C25088F41FF13BADAE7D56467D7A44DF6
magnet:?xt=urn:btih:a5f99898459dc7fb57f79001a109e8b11c7bfd9d
magnet:?xt=urn:btih:50c384285b05a8fe6bf92a28e9c3b43f30adbb0b&tr.0=http://tracker.openbittorrent.com/announce&tr.1=udp://tracker.openbittorrent.com:80/announce&tr.2=http://tracker.thepiratebay.org/announce&tr.3=http://tracker.publicbt.com/announce&tr.4=http://tracker.prq.to/announce&tr.5=http://torrent-download.to:5869/announce
magnet:?xt=urn:btih:0efe1abe2411059b1d106c5ce9b171a8270d667f&tr.0=http://tracker.openbittorrent.com/announce&tr.1=udp://tracker.openbittorrent.com:80/announce&tr.2=http://tracker.thepiratebay.org/announce&tr.3=http://tracker.publicbt.com/announce&tr.4=http://tracker.prq.to/announce&tr.5=http://torrent-download.to:5869/announce

然后在用浏览器是会发现页面被Xunlei断开

@iambus
Owner

没太看明白,什么叫断开连接?

@honglei

就是用浏览器打开http://dynamic.cloud.vip.xunlei.com这个页面会有如下消息:

错误 324 (net::ERR_EMPTY_RESPONSE):服务器已断开连接,且未发送任何数据。

@iambus iambus was assigned
@iambus iambus closed this in ddaac88
@iambus
Owner

这是偶尔的网络问题吧。

@honglei

不是网络的问题,你可以试试在links.txt添加100个Magnet连接,然后使用命令: python lixian_cli.py add --input links.txt测试一下:

magnet:?xt=urn:btih:014e31a62605045b5839e7430c9d6c10098579d1
magnet:?xt=urn:btih:7fa30749456b32bc13ad44d9aec35e5ea1c48de7
magnet:?xt=urn:btih:a097353fc101567624c773fd081d54f2bebeb403
magnet:?xt=urn:btih:0efe1abe2411059b1d106c5ce9b171a8270d667f
magnet:?xt=urn:btih:9e28d1001d2a1e299f5b0b2927d379e1b74b9591
magnet:?xt=urn:btih:cceb5b9457e03620a58274a2cbc715a631019d04
magnet:?xt=urn:btih:932a0a3a16d427734c50a66edfb342e1ba78ab5d
magnet:?xt=urn:btih:06502be8fd52467dfa00d0647c03541c03139eea
magnet:?xt=urn:btih:567b7ba15c61f74df5aa326d0537b4f506e15265
magnet:?xt=urn:btih:b3bc3851e124bbb6bd6a42b8c8911b08c6e40c28
magnet:?xt=urn:btih:df1a7d9f6ba3034fbe680cc9c0da2584ab9c84ae
magnet:?xt=urn:btih:cee03d5b2099898ca7f4262443dea6c19d2137a3
magnet:?xt=urn:btih:d74549c210fa644e9089f862b7668fcb99ade49c
magnet:?xt=urn:btih:50c384285b05a8fe6bf92a28e9c3b43f30adbb0b
magnet:?xt=urn:btih:e8adc3d41a8cf8575626c90742628e908bb11475
magnet:?xt=urn:btih:468f759b384230c1f581ada916e06bed96f1619e
magnet:?xt=urn:btih:14f08c9716fd1f1f8bdd3c6f008ddbfe0af5e929
magnet:?xt=urn:btih:88e901f613acd282fb7b6c35b6f6399c6c5c8d04
magnet:?xt=urn:btih:4a841dd7cb2a3d4f4be35a7f1f71f85c1e39501d
magnet:?xt=urn:btih:0af4f418d164ae4cea70c37b9a09abebf6a58d74
magnet:?xt=urn:btih:003bf0659142c8dc14c923628575d4fec42b5d23
magnet:?xt=urn:btih:477f6cf939ce937446fc513f7f76da4cd8b0b73f
magnet:?xt=urn:btih:caa29eaa5fcd1039db14a951fa3ef4ddfffba668
magnet:?xt=urn:btih:42741f33783a39541ddb6ed2ee720db7cb8005a9
magnet:?xt=urn:btih:211f41ff546e050d6fc212e13e60871ce1715150
magnet:?xt=urn:btih:7e3473dd711de41441229b3a6c746d20b48a0f9a
magnet:?xt=urn:btih:4ead2569d3f6124716f786ecbf6bffc6b22f9683
magnet:?xt=urn:btih:5bb8e5b3080eac2f8b12e63164b6d8f8c4e50c72
magnet:?xt=urn:btih:ceda80324885ffcd1557cbc3fe3fdfd7ab021f90
magnet:?xt=urn:btih:c9dbf6df0fcc1f7e23b29e2682d88cc29eee9179
magnet:?xt=urn:btih:6ae077f221edb3bbc64a3191af998659441ee948
magnet:?xt=urn:btih:35aee1d465aab1a2af8a4bbfcceb5ab9328d115d
magnet:?xt=urn:btih:06b47da2a48ad608e76c845b3270ed4702276ea9
magnet:?xt=urn:btih:5498012b69dcfc6cf659fe976350b10bd5cb68ab
magnet:?xt=urn:btih:f77b2bfd2f0a7c334dacf7deb16cdbf37f5dbbde
magnet:?xt=urn:btih:4ed6c76a5551da8773004c3a5768cb2f31063642
magnet:?xt=urn:btih:394286152e19e4d62194a94eb7881409fe18236b
magnet:?xt=urn:btih:90c12cf12395846d5e582f09042342331a1b14e1
magnet:?xt=urn:btih:258db0b62a36b5da61067a341080839b5e97dee6
magnet:?xt=urn:btih:cbf15101791c8abccb10283f18baa2ae2c8afed8
magnet:?xt=urn:btih:75b79287df36bca12b13b9066578da1b0599d4a5
magnet:?xt=urn:btih:d857c3c6fc69c61d3f799f09bdffa87bb3d5ed91
magnet:?xt=urn:btih:7f2a82e58692432acd7e7309862e757b31299cf1
magnet:?xt=urn:btih:db5432e343929db5c23d31674c21114f93252053
magnet:?xt=urn:btih:8966147d30af723f5d7dd002b481134104dd8b76
magnet:?xt=urn:btih:07448a4909c6ef0d7d1f120604dbc55b0fd5bed5
magnet:?xt=urn:btih:d8caa61f9852323ccd6e3e9782d06972df1b88cc
magnet:?xt=urn:btih:e4ab342b8c52d2f9d2c859bb1a4be55708d074bb
magnet:?xt=urn:btih:43ae39246749b080ca4a8a10f36ca7ef51ba2eeb
magnet:?xt=urn:btih:ec4571c1b6fe9923f356283ce7373eee6bdd96ce
magnet:?xt=urn:btih:35760b23b12b48a8a8acace36961fbfbb3c4117e
magnet:?xt=urn:btih:9086c3bb5abd02605a0ccc8e31f48e7a9ee5e35a
magnet:?xt=urn:btih:97176f325e11e00cd9b6fb79f2f49f95e4fd71a3
magnet:?xt=urn:btih:1b7d1d926db84eafd001a7977a093e1f86d06299
magnet:?xt=urn:btih:ede7ecb98225de04bc86f3c117c5d773bea7fe08
magnet:?xt=urn:btih:0ed34b849855a1a61a6f6ad4adcaeb5a952c4d59
magnet:?xt=urn:btih:eb5cc97df8e457fff121d7feb7fc8a3c3827096c
magnet:?xt=urn:btih:703697b13a4f8b7356d1f3f471d6274613e3b521
magnet:?xt=urn:btih:22f289bde951c1e2071d820b2b7be86a6a939933
magnet:?xt=urn:btih:9408399efa9bf6143d291b66aa09d4ec0ec89731
magnet:?xt=urn:btih:fb14313286c3954ac0f195aa23c012886dc2884c
magnet:?xt=urn:btih:36bb6709e380dee332ce4a266de5ca164d0ec882
magnet:?xt=urn:btih:1d31ec059a0a5cf01e13e416326a1e535ae2a448
magnet:?xt=urn:btih:44cccba381937b316d31f6a0e66073e7145d0169
magnet:?xt=urn:btih:d83336e0f9e5d072cae7abaf208cffff89f9c1a2
magnet:?xt=urn:btih:0dc0f8fe3bf087af123f3060c90ab502828e6c8a
magnet:?xt=urn:btih:83afc75cee53bd10bda56677644ff2660c6b1f12
magnet:?xt=urn:btih:0edd47cbb9917d035c1310b8b7797ac6d15b7a4c
magnet:?xt=urn:btih:e32df252010bf85d732dd49aa0b3f7a34bfa4f7d
magnet:?xt=urn:btih:52896389aa4281b5bc7d180c1a1ead5fdc7bbda6
magnet:?xt=urn:btih:1731b7d247e945cf7d9a1039c107dc4afc7410d1
magnet:?xt=urn:btih:c5c4e23dead1dc679aad59387b3f61cbad1d56cd
magnet:?xt=urn:btih:d9dc41f9a81e56bda3082f48f32e6454ca73089a
magnet:?xt=urn:btih:c73b5290b6aa3fc3a5b314666dbfaab4c6a506c9
magnet:?xt=urn:btih:bdcdc7fbc23f50bb5d4e207274926f70f9187ed0
magnet:?xt=urn:btih:6c9980837e5b1728e438bc5cb637d751fe404411
magnet:?xt=urn:btih:b492085a3124703150ef8c785346b6d686228f69
magnet:?xt=urn:btih:f33f1df857b055ba16ffcca6f8370b1f625a7e3b
magnet:?xt=urn:btih:ab306154751747f54cd6b06b977aaf68f9938fde
magnet:?xt=urn:btih:9bd54995e0584603019b4a3618ac2bb17aad1c6a
magnet:?xt=urn:btih:6973e89ab74b84a4103199c278e7b63f783d57f4
magnet:?xt=urn:btih:d7538c020358f0c79d38de3dc38aae8433d06778
magnet:?xt=urn:btih:1ad777c5564989b75053582f950e75db34f5d208
magnet:?xt=urn:btih:1951498413d270e15becc8cd3b540dd62a98130e
magnet:?xt=urn:btih:b76c8165d5e5553ab6223ca133302be2a5f64db2
magnet:?xt=urn:btih:490f1de4277ad319ce1247f0b77ba445da23de00
magnet:?xt=urn:btih:a850877d28dc9fc1327cab94e68bdcd9090c9545
magnet:?xt=urn:btih:d3b778174825dd045114ad84f4ef11688a9d4433
magnet:?xt=urn:btih:5fbfbb971a9b8a5b50fc471fcf3f9c434d0e4259
magnet:?xt=urn:btih:0ABAA832D893087264FF032ACC47FF8F4AFD27F3
magnet:?xt=urn:btih:cfa241affdd7f0a23d7246ed1937f7ec1f61cac2
magnet:?xt=urn:btih:C34F267EC272B397E8C9067AE34A4881F0AF05C8
magnet:?xt=urn:btih:C34F267EC272B397E8C9067AE34A4881F0AF05C8
magnet:?xt=urn:btih:C34F267EC272B397E8C9067AE34A4881F0AF05C8
magnet:?xt=urn:btih:EBFD5D529B4D7A2A9038ACE7B24C31AE3F0EBA91
magnet:?xt=urn:btih:EBFD5D529B4D7A2A9038ACE7B24C31AE3F0EBA91
magnet:?xt=urn:btih:EBFD5D529B4D7A2A9038ACE7B24C31AE3F0EBA91
magnet:?xt=urn:btih:43df4214c9683fed8fc012e980706a78ee5c73a1
magnet:?xt=urn:btih:d9a762ac5f061667344c89bde172b2c7753ad2a5
magnet:?xt=urn:btih:383080cccb3041c223c4ef9f15580d890af31261
magnet:?xt=urn:btih:7ed399d954ab770f92f8aa62f59968573803f106
magnet:?xt=urn:btih:3152ea662b08f054922df2a342b0df39b124a6ea
magnet:?xt=urn:btih:42deace9838aff9aca62e4a214721fe7e2b3e8fc
magnet:?xt=urn:btih:4a4263d6b252406052c972285b1b0d845908496c
magnet:?xt=urn:btih:4c19aa03078a8055b6f4927e7192ff00a310eff9
magnet:?xt=urn:btih:4fd14aa337403670bf98275775fe7fe64d6cfcfd
magnet:?xt=urn:btih:8e5c948992f7d7ae4afb17317e3e71e99a41067b
magnet:?xt=urn:btih:eb0eb153887ae99657ad2e5ae93caa8a0de16c5a
magnet:?xt=urn:btih:07a0226a47f97f44d600caea05fddf184f9fd703
magnet:?xt=urn:btih:a5f99898459dc7fb57f79001a109e8b11c7bfd9d
magnet:?xt=urn:btih:832332c7e5a6fcce54c2e0d8a3d70cb911d1725d
magnet:?xt=urn:btih:269313BA084BAF100EC44868B3EFF7E382BD0B4A
magnet:?xt=urn:btih:5aee4f99199147281dedbeebf99773319f9bc12a
magnet:?xt=urn:btih:2399bc125a66a32c189db0aeead8324962227141
magnet:?xt=urn:btih:540e08d3f42ab3173fdac8f70239ea25a27ec15e
magnet:?xt=urn:btih:123e0202da7b5530faaa0387f7b9636b3d75a9bc
magnet:?xt=urn:btih:16d62aa71552cf6503c0b42d0b856506c8409786
magnet:?xt=urn:btih:14ec21368557752649c6ac72507bd3c6ba34b95a
magnet:?xt=urn:btih:13ACC1B43D928982E5C99A9D2AD81707D874B3FA
magnet:?xt=urn:btih:13ACC1B43D928982E5C99A9D2AD81707D874B3FA
magnet:?xt=urn:btih:13ACC1B43D928982E5C99A9D2AD81707D874B3FA
magnet:?xt=urn:btih:eeb6d6c317854f1cdd36b37c4afea77be7f7b912
magnet:?xt=urn:btih:ae5ef7cfcd7280db76cf231af68d3afa0f1d30e0
magnet:?xt=urn:btih:b1fcf1fd3a4383d9ef6af19d893865d5bdcce0bc
magnet:?xt=urn:btih:c6e8e9fec9e300bce3a2f6097338532fa1815b57
magnet:?xt=urn:btih:1e131e9288f11cead6e35db6385519035409a3d3

@iambus
Owner

具体如何检查是否断开?
一、使用脚本添加
二、登录http://lixian.vip.xunlei.com/task.html
还是
一、登录http://lixian.vip.xunlei.com/task.html
二、保持网页打开状态,使用脚本添加任务
三、刷新网页?

@honglei

第一种方法,也许是xunlei的实现有问题或者是某种限制的原因。总之是没办法把整个网站的magnet连接添加上去。

@iambus
Owner

我这边无法重现这个问题。理论上讲,网页上访问出错和你在脚本里添加多少任务应该没什么联系。

@honglei

确认是迅雷的反DoS策略引起的。 请求频率过高会导致服务器拒绝连接。

@iambus
Owner

我加一百个貌似没什么问题……

@honglei

恩,可我加的是几万个链接。

@honglei

测试的结果是多个Xunlei账户不能在同一个IP上并发登录(即使创建的是不同的XunleiClient对象)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.