aboutsummaryrefslogtreecommitdiffstats
path: root/lib/quiet_opener.rb
Commit message (Collapse)AuthorAgeLines
* Use exception notification for third party url errorsLouise Crow2014-11-14-2/+13
| | | | Include URL and error in notification and log.
* Catch timeouts in quietly_try_to_purgeIan Chard2014-11-03-1/+1
| | | | | Although many times of errors are caught, the case where a connection is made but no reply is received resulted in an uncaught Timeout::Error.
* Fix quietly_try_to_purge on Ruby 2.0Mark Longair2013-11-22-8/+29
| | | | | | | | | | | | | | | The tests of quietly_try_to_purge were failing on Ruby 2.0 due to the net-http-local gem not working with that Ruby version. When Net::HTTP::bind is called, it temporarily replaces the open method of TCPSocket with a version of open that only takes two parameters. The Ruby 1.9 version of net/http.rb calls TCPSocket.open with two parameters, but the Ruby 2.0 version calls it with 4, and so fails with a mismatched number of arguments error. In fact, net-http-local doesn't seem to be necessary with Ruby 2.0, where one can supply a :local_port argument to Net::HTTP.start, so this commit patches lib/quiet_opener.rb to use that approach with Ruby >= 2.0, and net-http-local on earlier versions.
* Also silence network unreachable errors.Louise Crow2013-04-17-6/+6
|
* ECONNRESET is another error we might getRobin Houston2012-08-20-2/+2
|
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-06-23-10/+13
|\ | | | | | | | | | | | | | | Conflicts: Gemfile.lock script/handle-mail-replies script/handle-mail-replies.rb spec/controllers/request_controller_spec.rb
| * Make successful PURGEs log at debug level to reduce unecessary noise at ↵Seb Bacon2012-06-20-1/+1
| | | | | | | | default level (info)
| * Increase the time a page is cached for sites that are using Varnish. ↵Seb Bacon2012-06-20-3/+3
| | | | | | | | Relatedly, document the consequences of getting the Varnish config wrong; and make it easier to grep for problems with Varnish in the log.
| * Bind PURGE requests to localhostSeb Bacon2012-06-20-6/+8
| |
| * Use explicit `Rails.logger` (as we're not inheriting from ActiveRecord)Seb Bacon2012-06-20-4/+4
|/
* More changes and refactoring to make purges work.Seb Bacon2012-04-20-0/+34