Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
From 15s -> 30s
  • Loading branch information
asteel-gsa committed Mar 5, 2024
1 parent d5d51ac commit 34f9fec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _scan_file(file):
settings.AV_SCAN_URL,
files={"file": file},
data={"name": file.name},
timeout=15,
timeout=30,
)
except requests.exceptions.ConnectionError:
logger.error("SCAN Connection error")
Expand Down Expand Up @@ -181,7 +181,7 @@ def handle(self, *args, **options):
paths = options["paths"]

# The bucket name is a "friendly" name.
# We need to look it up in VCAP_SERVICES if we are not local, and
# We need to look it up in VCAP_SERVICES if we are not local, and
# then convert it to the brokered name.
if os.getenv("ENV") not in ["LOCAL", "TESTING"]:
brokered_bucket = lookup_bucket_in_vcap(bucket)
Expand Down

0 comments on commit 34f9fec

Please sign in to comment.