skip montanaro dwooqfuuguserssourceforgenet update cvsrootspambayesspambayesspambayes directory sc8prcvs8sourceforgenettmpcvsserv15971 modified files tag coresvr dnscachepy log message handful changes ive running quite awhile truly functional change make minttl global set one day set 0 stuff print messages stderr use container instead lencontainer 0 bit less aggressive pruning index dnscachepy rcs file cvsrootspambayesspambayesspambayesdnscachepyv retrieving revision 13 retrieving revision 1321 diff c2 r13 r1321 dnscachepy 13 aug 2006 020543 0000 13 dnscachepy 24 may 2007 031441 0000 1321 2329 kcheckforpruneevery20 kmaxttl60 60 24 7 one week kprunethreshold1500 may go slightly numbers chosen random kprunedownto1000 2332 kcheckforpruneevery20 kmaxttl60 60 24 7 one week servers always return ttl zero well hold onto data bit longer kminttl24 60 60 1 one day kprunethreshold5000 may go slightly numbers chosen random kprunedownto2500 8997 selfdnstimeout10 servers always return ttl zero cases turning bit probably reasonable selfminttl0 end usersettable attributes 9295 160164 cselfcachesanswerqtype canswerquestionremoveanswer lencanswerquestion0 del canswerquestion 158162 cselfcachesanswerqtype canswerquestionremoveanswer canswerquestion del canswerquestion 180184 cselfcachesanswerqtype canswerquestionremoveanswer lencanswerquestion0 del canswerquestion 178182 cselfcachesanswerqtype canswerquestionremoveanswer canswerquestion del canswerquestion 218233 pass else assert lenanswers0 ind0 guarantee expire already done ind sysstderr lookup failure question answers del cachetolookinquestion else 250275 except dnsbasednserrordetail detailargs0timeout print error fixmedetail print question wasqueryquestion print origianal question wasquestion print type wasqtype objs lookupresultqtypenonequestionselfcacheerrorsecsnownow cachetolookinquestionobjs add format return return selfformatforreturnobjs except socketgaierrordetail print dns connection failure selfqueryobjns detail print defaults dnsdefaults objs answer replyanswers answertypenameqtype pydns returns ttls longs rfc 1035 says ttl value signed 32bit value must positive safe coerce python integer anyone sets time live 2311 seconds 68 years change drunk arguably ought impose maximum rather continuing longs intlong returns long recent versions python ttlmaxminintanswerttlkmaxttlselfminttl rfc 2308 says cache nxdomain minimum minimum field soa record ttl 250275 except dnsbasednserrordetail detailargs0timeout print sysstderr error fixme detail print sysstderr question queryquestion print sysstderr original question question print sysstderr type qtype objs lookupresultqtypenonequestionselfcacheerrorsecsnownow cachetolookinquestionobjs add format return return selfformatforreturnobjs except socketgaierrordetail print sysstderr dns connection failure selfqueryobjns detail print sysstderr defaults dnsdefaults objs answer replyanswers answertypenameqtype pydns returns ttls longs rfc 1035 says ttl value signed 32bit value must positive safe coerce python integer anyone sets time live 2311 seconds 68 years change drunk arguably ought impose maximum rather continuing longs intlong returns long recent versions python ttlmaxminintanswerttlkmaxttlkminttl rfc 2308 says cache nxdomain minimum minimum field soa record ttl 279288 objsappenditem lenobjs0 cachetolookinquestionobjs return selfformatforreturnobjs probably servfail like lenreplyauthority0 objs lookupresultqtypenonequestionselfcacheerrorsecsnownow cachetolookinquestionobjs 279288 objsappenditem objs cachetolookinquestionobjs return selfformatforreturnobjs probably servfail like replyauthority objs lookupresultqtypenonequestionselfcacheerrorsecsnownow cachetolookinquestionobjs 319329 wwwseeputoforcom wwwcompletegarbagetv wwwtradelinkllccom print checking host nowtimetime ipsclookuphost print ipstimetimenow nowtimetime ipsclookuphost print ipstimetimenow ips 319329 wwwseeputoforcom wwwcompletegarbagetv wwwtradelinkllccom print sysstderr checking host nowtimetime ipsclookuphost print sysstderr ipstimetimenow nowtimetime ipsclookuphost print sysstderr ipstimetimenow ips 331340 nowtimetime nameclookupipqtypeptr print nametimetimenow nowtimetime nameclookupipqtypeptr print nametimetimenow else print unknown cclose 331340 nowtimetime nameclookupipqtypeptr print sysstderr nametimetimenow nowtimetime nameclookupipqtypeptr print sysstderr nametimetimenow else print sysstderr unknown cclose _______________________________________________ spambayescheckins mailing list pnperxdpvsarswdlppythonorg httpmailpythonorgmailmanlistinfospambayescheckins tue 05 aug 2008 171026 0700 spambayescheckins spambayesspambayes dnscachepy131321