Commit 803c0bff authored by liyuanhong's avatar liyuanhong

设置了拉流超时时间

parent 6b7e63bd
......@@ -103,7 +103,7 @@ class FlvPressureTest():
pullUrl = self.getPlayUrl(mobile, self.channel)
# pullUrl = self.replaceHost(pullUrl, "video-test.vandyo.com:")
try:
r = requests.get(pullUrl,stream=True)
r = requests.get(pullUrl,timeout=5,stream=True)
with open(os.devnull, 'w') as f:
for chunk in r.iter_content(chunk_size=512):
if chunk:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment