sslyze内存泄漏

时间:2017-03-10 21:07:52

标签: python python-2.7 ssl

如果我在无限循环中运行python2.7中的跟随代码以定期检查ssl protcol支持,则内存越来越大,直到程序失败。

任何人都可以帮助我:( 对我来说这是一个非常严重的问题。

from sslyze.synchronous_scanner import SynchronousScanner
from sslyze.plugins.openssl_cipher_suites_plugin import Tlsv12ScanCommand, Tlsv11ScanCommand, Tlsv10ScanCommand, Sslv30ScanCommand, Sslv20ScanCommand

sslv20 = { 'version': 'SSLv20', 'command': Sslv20ScanCommand() }
sslv30 = { 'version': 'SSLv30', 'command': Sslv30ScanCommand() }
tlsv10 = { 'version': 'TLSv10', 'command': Tlsv10ScanCommand() }
tlsv11 = { 'version': 'TLSv11', 'command': Tlsv11ScanCommand() }
tlsv12 = { 'version': 'TLSv12', 'command': Tlsv12ScanCommand() }

for protocol in [sslv20, sslv30, tlsv10, tlsv11, tlsv12]:
    scanner = SynchronousScanner(network_timeout=2, network_retries=2)
    scan_result = scanner.run_scan_command(server_info, protocol['command'])
    # ...

我做错了什么?

0 个答案:

没有答案