Make the functions below multithreaded, so, more than 1 CPU will be used when determining if a domain matches or not an ACL (source code from Lusca open source web proxy). Deliver production-tested code (I will set up the testing environment).
static void
aclParseDomainList(void *curlist)
{
// DUDU
char *t = NULL;
splayNode **Top = curlist;
while ((t = strtokFile())) {
Tolower(t);
t = xstrdup(t);
*Top = splay_insert(t, *Top, aclDomainCompare);
if (splayLastResult == 0)
safe_free(t);
}
}
static int
aclHostDomainCompare(const void *a, const void *b)
{
const char *h = a;
const char *d = b;
/* DUDU */
return matchDomainName(h, d);
}
Hi,
I'm an experienced programmer and interested to work in this project.
Please see the PM for the details regarding qualification, experience etc.
Thanks,
Widad.