[REQ] request timeout environmental variable

Bug #1749884 reported by Thomas Cuthbert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apache OpenID
Incomplete
Undecided
Unassigned

Bug Description

The timeout value for sessions is currently hardcoded to an hour:
```
apache_openid/_init_.py: session = Session(apache_request, timeout=3600, lock=False)
```

Can this be changed to a variable defaulted to 3600 but configurable via an environmental variable?

Daniel Manrique (roadmr)
affects: apache-openid (Ubuntu) → apache-openid
Revision history for this message
Daniel Manrique (roadmr) wrote :

There are two branches implementing a fix for this.

This one uses an Apache config setting:

https://code.launchpad.net/~asbalderson/apache-openid/apache-openid

This one uses an env var:

https://code.launchpad.net/~roadmr/apache-openid/tunable-session-timeout

Thomas, could you maybe look at them and decide which approach you prefer?

The first one has no tests, but they could easily be adapted from the second one's, if that option is desired.

Changed in apache-openid:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.