Skip to content

Commit

Permalink
Merge pull request #84 from nttcom/feature-#83
Browse files Browse the repository at this point in the history
#83 ログ送信時のリクエストにタイムアウトを指定
  • Loading branch information
Takuma Tsubaki authored Dec 23, 2022
2 parents cbdd9a1 + 0935e87 commit 2205495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osect_sensor/Application/edge_cron/common/common_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@

SEND_VERSION_API_URL = 'https://your url/paper/api/v1/sensor_status/post'
"""Suricataシグネチャのバージョンを送るURL"""

SEND_REQUST_TIMEOUT = 180
""" ログ送信時のタイムアウト値 """
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
PCAP_SERVER_UPLOADING_FILE_PATH,
PCAP_TO_DB_CPU,
PCAP_UPLOADED_FILE_PATH,
SEND_REQUST_TIMEOUT,
SURICATA_ENABLE,
SURICATA_SHELL_COMMAND,
SURICATA_YAML,
Expand Down Expand Up @@ -388,6 +389,7 @@ def send_server(zip_list):
cert=CLIENT_CERTIFICATE_PATH,
files=files,
data=data,
timeout=SEND_REQUST_TIMEOUT,
)
if resp.status_code != 200:
raise Exception(
Expand Down

0 comments on commit 2205495

Please sign in to comment.