View Code? Open in Web Editor
NEW
klarlack is a ruby client library for the varnish administration interface. It allows, among other things, purging of cached objects from ruby code.
Home Page: http://github.com/schoefmax/klarlack
License: MIT License
klarlack's Issues
Heyas :)
Have you checked the latest interface for purging documents from varnish cache?
http://varnish-cache.org/wiki/Purging
I will need to use this new features, if you don't have time to implement those, just say so and I'll fork the project, implement those myself :)
purge :hash, '/home?x=1' <-> invalid regex syntax, maybe the ? is escaped twice to ? or something like that...
10000.times{ EsiHelper.purge_url '^xxxx$' }
sudo /etc/i/varnish restart
-> Rails instance freezes in 1/3 cases (normal error in 2/3 cases)
i already tried removing the mutex + @conn.read + @conn.gets from cmd, but did not help so far
could you write a spec that tests this scenario or just try it out <-> maybe something wrong with our setup...
e.g. purge wit a invalid regex and this error appears
atm we are testing some issues with freezing rails instances when i notices this not-so-nice error:
10000.times{ EsiHelper.purge_url '^xxxx$' } + sudo /etc/i/varnish restart
nil.split <->
pre>/apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:224:in cmd' /apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:221:in
synchronize'
/apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:221:in cmd' /apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:138:in
purge'
its no real problem, but it could be a normal Varnish::Error