mailgun/lemma — pull request #3 by russjones (2014-12-06 02:49:12+00:00)
Title: Increase timeouts.

**Purpose**

Traffic on the internet can often take much longer than 10 seconds to transmit. This is especially so if large messages are being sent. This commit increases that timeout to 95 seconds so even large messages should fall within the acceptable window.

**Implementation**

Looking at the `checkTimestamp` function in `lemma.httpsign.auth`, imagine you are at some time `t`. The request can not be from more than `t + MaxSkewSec` in the future. The request can also not be from more than `t - (CacheTimeout - MaxSkewSec)` in the past. Therefore, if we want to allow a 95 second window, we have to increase `CacheTimeout` and/or decrease `MaxSkewSec`.

This was done by changing the constants, `CacheTimeout` is now `100 seconds` and `MaxSkewSec` is `5 seconds`.

**Related Commit**