Overview
Comment: | Finally reactor support. Plain and threaded are tested and working good. Kqueue not ready for use. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ed7808827d82157d37343048186ba5c5 |
User & Date: | c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 on 2009-10-14 14:16:17.000 |
Other Links: | branch diff | manifest | tags |
Context
2009-10-27
| ||
15:27 | now mark function returns id of site added check-in: 318311c7d2 user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
2009-10-14
| ||
14:16 | Finally reactor support. Plain and threaded are tested and working good. Kqueue not ready for use. check-in: ed7808827d user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
09:04 | Added 'or replace' for better function updating, reordered funtions to work as found in file. check-in: 67e762b39b user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
Changes
Modified squid-tagger.conf
from [3b38389a60]
to [cab21d427f].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 | + + + + + + | password = password # This section can be used to turn off some logging. [log] # There would be no logs generated if 'silent' is set to 'yes'. silent = no # This section control reactor wich would service main loop. [reactor] # Possible reactor types: plain, thread and kqueue (broken) reactor = thread |
Modified squid-tagger.py
from [b2dec98d3a]
to [1d253fe455].
︙ | |||
45 46 47 48 49 50 51 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | - + - + | return(self._db) def check(self, site, ip_address): return(self._check_stmt(site, ip_address)) # abstract class with basic checking functionality class Checker: |
︙ | |||
78 79 80 81 82 83 84 | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | - + - - - - - + + + + + + + - + + + + - - - - - - - + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | request = re.compile('^([0-9]+)\ (http|ftp):\/\/([-\w.:]+)\/([^ ]*)\ ([0-9.]+)\/(-|[\w\.]+)\ (-|\w+)\ (-|GET|HEAD|POST).*$').match(line) if request: id = request.group(1) #proto = request.group(2) site = request.group(3) url_path = request.group(4) ip_address = request.group(5) |
︙ | |||
183 184 185 186 187 188 189 190 | 249 250 251 252 253 254 255 256 257 258 259 260 261 | + + + + - - - - - + | # initializing and reading in config file config = Config() config.section('reactor') if config['reactor'] == 'thread': checker = CheckerThread() elif config['reactor'] == 'plain': checker = Checker() elif config['reactor'] == 'kqueue': checker = CheckerKqueue() |