moonshawdo / checkgoogleip

主要是用来检查哪些IP可以用在goagent上面
Apache License 2.0
581 stars 238 forks source link

有没有人测试过python 2.7.10+gevent 1.0.2+pyopenssl 0.15.1环境运行? #31

Closed CNMan closed 9 years ago

CNMan commented 9 years ago

线程设置无效,貌似变成直接变成单线程了

moonshawdo commented 9 years ago

没遇到过这种情况,执行时前面几行日志是什么 如:

[Dummy-1]support gevent
[Dummy-1]load last result,ok cnt:368,ok file line:1242,error cnt: 50274
[Thread-2]begin to get ramdom ip
[Thread-2]load extra ip ok,line:53,load default ip: 1
[Thread-2]load last gae ip cnt: 1242
[Dummy-1]need create max threads count: 60
[Thread-61]ip: 210.242.125.38,CN: *.googlevideo.com,O:Google Inc,svr: gvs 1.0,t:2580ms,ok:0
[Thread-51]ip: 110.164.6.249,CN: *.googlevideo.com,O:Google Inc,svr: gvs 1.0,t:2590ms,ok:0
[Thread-49]ip: 110.164.6.146,CN: *.googlevideo.com,O:Google Inc,svr: gvs 1.0,t:2594ms,ok:0
[Thread-47]ip: 110.164.6.144,CN: *.googlevideo.com,O:Google Inc,svr: gvs 1.0,t:2600ms,ok:0
[Thread-46]ip: 110.164.16.70,CN: *.googlevideo.com,O:Google Inc,svr: gvs 1.0,t:2603ms,ok:0
CNMan commented 9 years ago

不启用gevent是正常的,启用以后ip_tmperror貌似是一个一个增长,看起来不像是开了多线程,按说不到1000IP,正常应该是几秒钟就扫完的 ImgurIMG ImgurIMG

CNMan commented 9 years ago

退回python 2.7.10+gevent 1.0.1+pyopenssl 0.13.1正常使用