Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

线程貌似有问题 #2

Open
ldbfpiaoran opened this issue Jan 2, 2018 · 2 comments
Open

线程貌似有问题 #2

ldbfpiaoran opened this issue Jan 2, 2018 · 2 comments

Comments

@ldbfpiaoran
Copy link

不知道应该和机器有关么
1h1g vps 装的kaili最新的
开100线程的时候 需要做一个ctrl+c操作跳出第一个
然后我开了30线程
扫描banner会报错
Traceback (most recent call last):
File "/root/DiscoverSubdomain/lib/simple_assets.py", line 27, in GetBanner
r = requests.get(url, timeout=10, verify=False)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 502, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 634, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 134, in resolve_redirects
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
TooManyRedirects: Exceeded 30 redirects.

不知道是是不是链接超时导致的

@coco413
Copy link
Owner

coco413 commented Jan 2, 2018

你pull下最新代码,这个之前我也遇到过已经修改了,重定向关掉就可以了 allow_redirects=False

@ldbfpiaoran
Copy link
Author

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants