hackhttp
hackhttp copied to clipboard
ssl.SSLError: ('The read operation timed out',)
ssl.SSLError: ('The read operation timed out',) 设置超时在哪里设置呢
默认超时时间 10 秒, 你可以自己初始化一个 httpconpool 对象,在这里设置最大连接池和超时时间:
import hackhttp
myconpool = hackhttp.httpconpool(maxconnectpool=20, timeout=30)
hh = hackhttp.hackhttp(conpool=myconpool)
url = "http://www.bugscan.net"
code, head, html, redirect_url, log = hh.http(url)
谢谢表哥