Samesite - proxy that can cache partial transfers

Check-in [8425e2e393]
anonymous

Check-in [8425e2e393]

Overview
Comment:Fixed logic around old file rechecking.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: 8425e2e39361a8a176919a7e435cc40c94c7f17e20983003e5b4171cc1c85bc4
User & Date: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 on 2011-12-14 08:54:18.000
Other Links: branch diff | manifest | tags
Context
2011-12-19
09:54
python 2.7 support, requires bsddb, not fully tested check-in: 601ec56da6 user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk
2011-12-14
08:54
Fixed logic around old file rechecking. check-in: 8425e2e393 user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk
2011-09-06
15:09
another round of small fixes in logic, ignored fields and caching files without known length check-in: 9a8a46bcf0 user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk
Changes
208
209
210
211
212
213
214
215


216
217
218
219
220
221
222
208
209
210
211
212
213
214

215
216
217
218
219
220
221
222
223







-
+
+








		# forcibly checking file if index holds Pragma header
		if not reload and 'Pragma' in record and record['Pragma'] == 'no-cache':
			info +='\nPragma on: recheck imminent.'
			recheck = True

		# skipping file processing if there's no need to recheck it and we have checked it at least 4 hours ago
		if not recheck and not reload and '_time' in record and (datetime.datetime.now() - datetime.timedelta(hours = 4) - record['_time']).days < 0:
		if not recheck and not reload and '_time' in record and (record['_time'] - datetime.datetime.now() + datetime.timedelta(hours = 4)).days < 0:
			info += '\nFile is old - rechecking.'
			recheck = True

		print(info)
		if reload or recheck:

			try:
				request = 'http://' + config['root'] + self.path