Ticket #3746: reduce_http_timeout_3746.patch

File reduce_http_timeout_3746.patch, 859 bytes (added by Rotund, 8 years ago)

Reduce default timeout to 15 seconds

  • twisted/web/http.py

    === modified file 'twisted/web/http.py'
     
    17341734
    17351735    logPath = None
    17361736
    1737     timeOut = 60 * 60 * 12
     1737    timeOut = 15
    17381738
    1739     def __init__(self, logPath=None, timeout=60*60*12):
     1739    def __init__(self, logPath=None, timeout=15):
    17401740        if logPath is not None:
    17411741            logPath = os.path.abspath(logPath)
    17421742        self.logPath = logPath
  • twisted/web/server.py

    === modified file 'twisted/web/server.py'
     
    441441    sessionFactory = Session
    442442    sessionCheckTime = 1800
    443443
    444     def __init__(self, resource, logPath=None, timeout=60*60*12):
     444    def __init__(self, resource, logPath=None, timeout=15):
    445445        """
    446446        Initialize.
    447447        """