{"action":"created","issue":{"url":"https://api.github.com/repos/XX-net/XX-Net/issues/349","labels_url":"https://api.github.com/repos/XX-net/XX-Net/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/XX-net/XX-Net/issues/349/comments","events_url":"https://api.github.com/repos/XX-net/XX-Net/issues/349/events","html_url":"https://github.com/XX-net/XX-Net/issues/349","id":73717494,"number":349,"title":"关于扫描超时的取值","user":{"login":"yfdyh000","id":1769875,"avatar_url":"https://avatars.githubusercontent.com/u/1769875?v=3","gravatar_id":"","url":"https://api.github.com/users/yfdyh000","html_url":"https://github.com/yfdyh000","followers_url":"https://api.github.com/users/yfdyh000/followers","following_url":"https://api.github.com/users/yfdyh000/following{/other_user}","gists_url":"https://api.github.com/users/yfdyh000/gists{/gist_id}","starred_url":"https://api.github.com/users/yfdyh000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yfdyh000/subscriptions","organizations_url":"https://api.github.com/users/yfdyh000/orgs","repos_url":"https://api.github.com/users/yfdyh000/repos","events_url":"https://api.github.com/users/yfdyh000/events{/privacy}","received_events_url":"https://api.github.com/users/yfdyh000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T19:43:47Z","updated_at":"2015-05-07T00:11:21Z","closed_at":null,"body":"目前的机制有一种问题，如果已有IP达到了最大值（目前3000）并且握手参数优良，扫描进程仍然会继续扫描新IP，并且不会降低标准，导致出现扫描出的IP是最慢，刚添加就移除的情况，浪费了时间和资源。\r\n例如：\r\n```\r\nMay 06 21:53:08 - [INFO] scan_ip add ip:95.143.84.154 time:5384\r\nMay 06 21:53:08 - [DEBUG] sort ip time:7\r\nMay 06 21:53:08 - [INFO] remove_slowest_ip:95.143.84.154 handshake_time:5384\r\n```\r\n\r\n扫描线程应该在IP库达到最大值时采用已有最慢的握手值作为超时标准，默认值与最慢值取低者。\r\n\r\n并且在IP库足够时，应该考虑暂停网络扫描，改为检查已有IP和移除超时失效项。"},"comment":{"url":"https://api.github.com/repos/XX-net/XX-Net/issues/comments/99653563","html_url":"https://github.com/XX-net/XX-Net/issues/349#issuecomment-99653563","issue_url":"https://api.github.com/repos/XX-net/XX-Net/issues/349","id":99653563,"user":{"login":"zhanglaplace","id":12178974,"avatar_url":"https://avatars.githubusercontent.com/u/12178974?v=3","gravatar_id":"","url":"https://api.github.com/users/zhanglaplace","html_url":"https://github.com/zhanglaplace","followers_url":"https://api.github.com/users/zhanglaplace/followers","following_url":"https://api.github.com/users/zhanglaplace/following{/other_user}","gists_url":"https://api.github.com/users/zhanglaplace/gists{/gist_id}","starred_url":"https://api.github.com/users/zhanglaplace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhanglaplace/subscriptions","organizations_url":"https://api.github.com/users/zhanglaplace/orgs","repos_url":"https://api.github.com/users/zhanglaplace/repos","events_url":"https://api.github.com/users/zhanglaplace/events{/privacy}","received_events_url":"https://api.github.com/users/zhanglaplace/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T00:11:21Z","updated_at":"2015-05-07T00:11:21Z","body":"确实是个好的建议。"}}