Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -81,7 +81,7 @@ def upload_clearance_file( | ... | @@ -81,7 +81,7 @@ def upload_clearance_file( |
| 81 | headers.pop("Content-Type", None) | 81 | headers.pop("Content-Type", None) |
| 82 | 82 | ||
| 83 | try: | 83 | try: |
| 84 | - resp = requests.post(url, headers=headers, data=data, files=files, timeout=120) | 84 | + resp = requests.post(url, headers=headers, data=data, files=files, timeout=90) |
| 85 | # 确保文件句柄尽快关闭 | 85 | # 确保文件句柄尽快关闭 |
| 86 | try: | 86 | try: |
| 87 | files["fileUpload"][1].close() | 87 | files["fileUpload"][1].close() |
| ... | @@ -150,7 +150,7 @@ def upload_file_for_ocr( | ... | @@ -150,7 +150,7 @@ def upload_file_for_ocr( |
| 150 | headers.pop("Content-Type", None) | 150 | headers.pop("Content-Type", None) |
| 151 | 151 | ||
| 152 | try: | 152 | try: |
| 153 | - resp = requests.post(url, headers=headers, data=data, files=files, timeout=120) | 153 | + resp = requests.post(url, headers=headers, data=data, files=files, timeout=90) |
| 154 | # 确保文件句柄尽快关闭 | 154 | # 确保文件句柄尽快关闭 |
| 155 | try: | 155 | try: |
| 156 | files["file"][1].close() | 156 | files["file"][1].close() | ... | ... |
-
Please register or login to post a comment