~chtsanti/squid/icap-max-connections

« back to all changes in this revision

Viewing changes to src/acl/MaxConnection.cc

  • Committer: Christos Tsantilas
  • Date: 2009-04-11 09:00:59 UTC
  • mfrom: (9294.1.333 trunk)
  • Revision ID: chtsanti@users.sourceforge.net-20090411090059-8n47p1kyy1cqfqkn
MergeĀ FromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 */
36
36
 
37
37
#include "squid.h"
38
 
#include "ACLMaxConnection.h"
 
38
#include "acl/FilledChecklist.h"
 
39
#include "acl/MaxConnection.h"
39
40
#include "wordlist.h"
40
41
 
41
 
ACL::Prototype ACLMaxConnection::RegistryProtoype(&ACLMaxConnection::RegistryEntry_, "maxconn");
42
42
 
43
 
ACLMaxConnection ACLMaxConnection::RegistryEntry_("maxconn");
44
43
 
45
44
ACL *
46
45
ACLMaxConnection::clone() const
95
94
int
96
95
ACLMaxConnection::match(ACLChecklist *checklist)
97
96
{
98
 
    return (clientdbEstablished(checklist->src_addr, 0) > limit ? 1 : 0);
 
97
    return clientdbEstablished(Filled(checklist)->src_addr, 0) > limit ? 1 : 0;
99
98
}
100
99
 
101
100
wordlist *