Opened 11 years ago

Last modified 4 years ago

#3746 defect new

— at twisted.web timeout of 12 hours is too longVersion 1

Reported by: ivank Owned by: jknight
Priority: high Milestone:
Component: web Keywords:
Cc: Thijs Triemstra, Jean-Paul Calderone Branch:

Description (last modified by Thijs Triemstra)

Firefox tries to keep the connection open for 5 minutes; IE 1 or 2 minutes. Right now, Twisted keeps connections open for 12 hours if the browser does not close them. Apache's default timeout is 15 seconds, and nginx's is 65 seconds. A short timeout would not disrupt responses that are just taking a while to generate.

The timeout is in three places:

  • twisted/web/ timeOut = 60 * 60 * 12
  • twisted/web/ def __init__(self, logPath=None, timeout=60*60*12):
  • twisted/web/ def __init__(self, resource, logPath=None, timeout=60*60*12):

Change History (1)

comment:1 Changed 11 years ago by Thijs Triemstra

Cc: Thijs Triemstra added
Description: modified (diff)

add markup to ticket description

Note: See TracTickets for help on using tickets.