keolo / mixpanel_client

Ruby interface to the Mixpanel Data API
MIT License
148 stars 72 forks source link

Add timeout option #48

Closed vaicine closed 8 years ago

vaicine commented 8 years ago

Hey @keolo,

We've been experiencing mixpanel API timing out a lot recently, so we added a timeout option to reduce page load when mixpanel is timing out.

When you setup mixpanel, you can specify a timeout in seconds. If you don't specify anything, the timeout will be set to nil, which OpenURI takes as having no timeout (what it does currently).