Overview
Comment: | working kqueue version |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
26fc9b34d96cc11c17707c2564e8a431 |
User & Date: | c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 on 2010-08-07 19:52:15.000 |
Other Links: | branch diff | manifest | tags |
Context
2010-08-07
| ||
21:12 | fixed hang on pipe closing check-in: 6c8b368359 user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
19:52 | working kqueue version check-in: 26fc9b34d9 user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
16:33 | optimized some functions check-in: 16383de08e user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
Changes
Modified squid-tagger.py
from [c2a10863f5]
to [20fa960400].
︙ | |||
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | + + | if request: id = request.group(1) #proto = request.group(2) site = request.group(3) url_path = request.group(4) ip_address = request.group(5) self.process(id, site, ip_address, url_path, line) return(True) else: self._log.info('bad request\n') self.writeline(line) return(False) def writeline(self, string): self._log.info('sending: ' + string) sys.stdout.write(string) sys.stdout.flush() def loop(self): |
︙ | |||
143 144 145 146 147 148 149 | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | - + | while True: line = sys.stdin.readline() if len(line) == 0: break self.check(line) self._lock_exit.acquire() |
︙ | |||
168 169 170 171 172 173 174 175 | 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 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | + + - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + | # creating data queue self._queue = [] def loop(self): # Wait for data by default timeout = None eof = False buffer = '' while True: |
︙ |