Overview
Comment: | OFDNSResolver: Use correct run loop mode for cache |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c13f9f78f1de68b856bc73a65578c67c |
User & Date: | js on 2024-01-06 15:36:36 |
Other Links: | manifest | tags |
Context
2024-01-11
| ||
20:42 | configure: Fix error messages around Mbed TLS check-in: 119a09c7af user: js tags: trunk | |
20:12 | Merge trunk into branch "asn1" check-in: 4320b1bf7d user: js tags: asn1 | |
2024-01-06
| ||
15:36 | OFDNSResolver: Use correct run loop mode for cache check-in: c13f9f78f1 user: js tags: trunk | |
01:08 | Revert change to OFSecureTransportTLSStream check-in: 6a2cac23e8 user: js tags: trunk | |
Changes
Modified src/OFDNSResolver.m from [fc8783c17e] to [b89d5a3a8f].
︙ | ︙ | |||
868 869 870 871 872 873 874 | uint32_t age = (uint32_t)-[cacheEntry.firstObject timeIntervalSinceNow]; OFDNSResponse *response = cacheEntry.secondObject; if (!containsExpiredRecord(response.answerRecords, age) && !containsExpiredRecord(response.authorityRecords, age) && !containsExpiredRecord(response.additionalRecords, age)) { | > > | > | > > > | | > > > | 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 | uint32_t age = (uint32_t)-[cacheEntry.firstObject timeIntervalSinceNow]; OFDNSResponse *response = cacheEntry.secondObject; if (!containsExpiredRecord(response.answerRecords, age) && !containsExpiredRecord(response.authorityRecords, age) && !containsExpiredRecord(response.additionalRecords, age)) { OFTimer *timer = [OFTimer timerWithTimeInterval: 0 target: delegate selector: @selector(resolver: didPerformQuery:response: exception:) object: self object: query object: response object: nil repeats: false]; [[OFRunLoop currentRunLoop] addTimer: timer forMode: runLoopMode]; objc_autoreleasePoolPop(pool); return; } } /* Random, unused ID */ |
︙ | ︙ |