Robert Collins wrote: > > > > Am I asking to much of squid to be able to use mysql queries, or is it > > just that I am too inexperienced to figure this out? All I want to do > > in redirect.cc is check to see if a certain field called override_status > > in a mysql record is ON or OFF. > > Ah. Your best bet is to do this externally to squid. Write your query as > an external_acl (squid 2.5 or above required). Use redirect_access in > squid.conf to test for the results of your query. > > Writing code in squid needs to be: > Non-blocking > asynchronous > non-memory-fragmenting > > Not a trivial task. > > External helpers though, can be somewhat looser on memory as they have > only their own resources to worry about, and can block and use > synchronous IO code.
After looking at the FAQ and examples for external_acls, I don't believe this feature will work for what I need. Correct me if I am wrong, but it doesn't look like I can define an external_acl in squid.conf and then 'call' that external_acl from redirect.cc. Is this correct? If so, I am back to linking in a subset of the mysql libraries and headers. Murrah Boswell
