bugfix
This commit is contained in:
parent
1e8a3a7c22
commit
8cf533b4a4
@ -1,4 +1,4 @@
|
||||
#!/home/ymq/py3/bin/python
|
||||
#!/usr/bin/env python
|
||||
from traceback import format_exc
|
||||
import asyncio
|
||||
import codecs
|
||||
@ -37,7 +37,7 @@ async def main():
|
||||
}
|
||||
i = 0
|
||||
buffer = ''
|
||||
reco = hc('POST', args.url, headers=headers, data=json.dumps(d))
|
||||
reco = hc('POST', args.url, headers=headers, data=json.dumps(d), timeout=3600)
|
||||
async for chunk in liner(reco):
|
||||
chunk = chunk[6:]
|
||||
if chunk != '[DONE]':
|
||||
|
Loading…
Reference in New Issue
Block a user