Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Fix quietly_try_to_purge on Ruby 2.0 | Mark Longair | 2013-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 Crow | 2013-04-17 | -6/+6 |
| | ||||
* | ECONNRESET is another error we might get | Robin Houston | 2012-08-20 | -2/+2 |
| | ||||
* | Merge branch 'develop' of github.com:sebbacon/alaveteli into develop | Robin Houston | 2012-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 Bacon | 2012-06-20 | -1/+1 |
| | | | | | | | | default level (info) | |||
| * | Increase the time a page is cached for sites that are using Varnish. ↵ | Seb Bacon | 2012-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 localhost | Seb Bacon | 2012-06-20 | -6/+8 |
| | | ||||
| * | Use explicit `Rails.logger` (as we're not inheriting from ActiveRecord) | Seb Bacon | 2012-06-20 | -4/+4 |
|/ | ||||
* | More changes and refactoring to make purges work. | Seb Bacon | 2012-04-20 | -0/+34 |