Newer versions of varnish prints a header that confuses the module. Run quit and read to connection close string instead.
Merge pull request #116 from tommybotten/master

Varnish module appears broken for v 2.1.5 and newer.
Replaced calls to table.getn() with the length operator '#'... table.getn is depreciated and is not support in versions of lua > 5.1
Merge pull request #138 from pamaddox/master

Update To Remove Calls To table.getn()
Merge branch 'master' into lua52