Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from ministryofjustice/fix-timeout-on-large-files
Browse files Browse the repository at this point in the history
Stop it breaking due to timeout on files ~> 10mb
  • Loading branch information
digitalronin committed May 31, 2017
2 parents ee63201 + 89ed239 commit c9670b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ set -m

host=${HOST:-localhost}
port=${PORT:-3310}
# I *think* this is miliseconds. The default is 500.
timeout=${TIMEOUT:-15000}

echo "using clamd server: $host:$port"
echo "using clamd server: $host:$port timeout: $timeout"

# start in background
java -jar /var/clamav-rest/clamav-rest-1.0.0.jar --clamd.host=$host --clamd.port=$port
java -jar /var/clamav-rest/clamav-rest-1.0.0.jar --clamd.host=$host --clamd.port=$port --clamd.timeout=$timeout

0 comments on commit c9670b6

Please sign in to comment.