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

线程没join,扫不全 #2

Open
cincly opened this issue Apr 1, 2020 · 1 comment
Open

线程没join,扫不全 #2

cincly opened this issue Apr 1, 2020 · 1 comment

Comments

@cincly
Copy link

cincly commented Apr 1, 2020

跑完任务后,可以把每个线程join进主线程,否则会有部分规则漏掉

@Mosuan
Copy link
Owner

Mosuan commented Apr 1, 2020

谢谢,join会拉长扫描时间,我在start加了sleep(0.2),但requests的timeout是5,当时考虑是加上sleep就可以了,如果超过sleep的时间丢弃掉,目前看起来sleep的时间远远不够,后面有空我再重构吧,当时的想法还是比较简单,没考虑那么多,还是非常感谢。

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