<font size="2"><font face="georgia,serif">Actually, more useful would be the output of "varnishd -C -f /path/to/your/VCL/file.vcl", in whole or primarily the area around line 602...  Not sure how to get away without actually looking at the cause of the error.  If it just said "syntax error", Google wouldn't be too helpful for that, either... :-/<br clear="all">

</font></font><font class="Apple-style-span" face="georgia, serif">-- <br></font>kb<br>
<br><br><div class="gmail_quote">On Fri, Jul 22, 2011 at 16:24, Roberto Moutinho <span dir="ltr"><<a href="mailto:robertomoutinho@gmail.com">robertomoutinho@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

My mistake... I've posted the wrong link.<br>
<br>
this is the one I was referring to:<br>
<a href="http://drcarter.info/2010/04/how-fighting-against-scraping-using-varnish-vcl-inline-c-memcached/" target="_blank">http://drcarter.info/2010/04/how-fighting-against-scraping-using-varnish-vcl-inline-c-memcached/</a><br>

<br><br>
<br>2011/7/22  Ken Brownfield <<a href="mailto:kbrownfield@google.com" target="_blank">kbrownfield@google.com</a>><br>
Hard to tell without seeing any code at all, and I "C" no code at that link.<br>
:)<br>
<br>
OT: I think scaling 100 million requests a month is a... dubious<br>
accomplishment -- 38 hits per second?  Really?<br>
--<br>
kb<br><br><div class="gmail_quote">2011/7/22 Jonathan Hursey <span dir="ltr"><<a href="mailto:jonathan.hursey@adrevolution.com" target="_blank">jonathan.hursey@adrevolution.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


wish I could help with this... if you get an answer please forward it this way. I'm super curious. <div><br><br><div class="gmail_quote"><div><div></div><div>On Fri, Jul 22, 2011 at 4:58 PM, Roberto Moutinho <span dir="ltr"><<a href="mailto:robertomoutinho@gmail.com" target="_blank">robertomoutinho@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hello to everyone,<br>
<br>
I've extended the C code on the <a href="http://blog.dansingerman.com/post/4604532761/how-to-block-rate-limited-traffic-with-varnish" target="_blank">http://blog.dansingerman.com/post/4604532761/how-to-block-rate-limited-traffic-with-varnish</a> page...<br>





But I have different needs from the original post since I'm serving a protected content all the time (Restfull API).<br>
<br>
Basically I have to authenticate a api key (received within a special 
header) on my database and store the key and theirs request limit value 
in memached.<br>
<br>
My main problem is that my C code works perfect when using gcc (ubuntu) 
to compile it but it does not compile together with Varnish.<br>
<br>
output from running varnishd<br>
<u><i><br>
storage_malloc: max size 256 MB.<br>
Message from C-compiler:<br>
./vcl.1P9zoqAU.c: In function ‘API’:<br>
./vcl.1P9zoqAU.c:602: error: invalid initializer<br>
Running C-compiler failed, exit 1<br>
VCL compilation failed</i></u><br>
<div><br>Searching for this "invalid initializer" on Google have not helped me at all :(<br><br>Best Regards<br>Roberto Moutinho<br>
</div>
<br></div></div>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br></div>
</blockquote></div><br>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br>