1. Michael[tm] Smith
  2. vnu

Commits

Michael[tm] Smith  committed 34885ef

added -Dnu.validator.servlet.connection-timeout and -Dnu.validator.servlet.socket-timeout to runtime system properties (b=690, r=hsivonen)
http://bugzilla.validator.nu/show_bug.cgi?id=690

  • Participants
  • Parent commits 6d915a7
  • Branches default

Comments (0)

Files changed (1)

File build.py

View file
 noSelfUpdate = 0
 useLocalCopies = 0
 pageTemplate = None
+connectionTimeoutSeconds = 5
+socketTimeoutSeconds = 5
 
 downloadedDeps = 0
 
     '-Dnu.validator.spec.html5-load=' + html5specLoad,
     '-Dnu.validator.spec.html5-link=' + html5specLink,
     '-Dnu.validator.servlet.max-file-size=%d' % (maxFileSize * 1024),
+    '-Dnu.validator.servlet.connection-timeout=%d' % (connectionTimeoutSeconds * 1000),
+    '-Dnu.validator.servlet.socket-timeout=%d' % (socketTimeoutSeconds * 1000),
     '-Dorg.mortbay.http.HttpRequest.maxFormContentSize=%d' % (maxFileSize * 1024),
     '-Dnu.validator.servlet.host.generic=' + genericHost,
     '-Dnu.validator.servlet.host.html5=' + html5Host,
     elif arg == '--local':
       useLocalCopies = 1
       noSelfUpdate = 1
+    elif arg.startswith("--connection-timeout="):
+      connectionTimeoutSeconds = int(arg[21:]);
+    elif arg.startswith("--socket-timeout="):
+      socketTimeoutSeconds = int(arg[17:]);
     elif arg == '--help':
       printHelp()
     elif arg == 'dldeps':