firehoseio / firehose

Build realtime Ruby web applications. Created by the fine folks at Poll Everywhere.
http://firehose.io/
MIT License
727 stars 72 forks source link

Allow configuring a publishing timeout in Producer.new #44

Closed thoughtless closed 10 years ago

thoughtless commented 10 years ago

This allows customizing the publish timeout when setting up a new Producer. Previously you would have to set the custom timeout on each message.

thoughtless commented 10 years ago

It is purely defensive, in case you pass in nil. It does also let you do something like Producer.new(ENV["URL"], ENV["TIMEOUT"]). We could also do this in the initializer. It just didn't seem worth much extra though.