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">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 class="moz-signature"><br>Searching for this "invalid initializer" on Google have not helped me at all :(<br><br>Best Regards<br>Roberto Moutinho<br>
</div>