Loading res_send.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -509,11 +509,6 @@ int res_nsend(ResState* statp, const uint8_t* buf, int buflen, uint8_t* ans, int return -ESRCH; } // If parallel_lookup is enabled, it might be required to wait some time to avoid // gateways drop packets if queries are sent too close together if (sleepTimeMs != 0ms) { std::this_thread::sleep_for(sleepTimeMs); } // Private DNS if (!(statp->netcontext_flags & NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS)) { bool fallback = false; Loading @@ -533,6 +528,12 @@ int res_nsend(ResState* statp, const uint8_t* buf, int buflen, uint8_t* ans, int } } // If parallel_lookup is enabled, it might be required to wait some time to avoid // gateways from dropping packets if queries are sent too close together. if (sleepTimeMs != 0ms) { std::this_thread::sleep_for(sleepTimeMs); } res_stats stats[MAXNS]{}; res_params params; int revision_id = resolv_cache_get_resolver_stats(statp->netid, ¶ms, stats, statp->nsaddrs); Loading tests/doh/src/client.rs +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ impl Client { let headers = vec![ quiche::h3::Header::new(b":status", b"200"), quiche::h3::Header::new(b"content-type", b"application/dns-message"), quiche::h3::Header::new(b"content-length", &len.to_string().as_bytes()), quiche::h3::Header::new(b"content-length", len.to_string().as_bytes()), // TODO: need to add cache-control? ]; Loading Loading
res_send.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -509,11 +509,6 @@ int res_nsend(ResState* statp, const uint8_t* buf, int buflen, uint8_t* ans, int return -ESRCH; } // If parallel_lookup is enabled, it might be required to wait some time to avoid // gateways drop packets if queries are sent too close together if (sleepTimeMs != 0ms) { std::this_thread::sleep_for(sleepTimeMs); } // Private DNS if (!(statp->netcontext_flags & NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS)) { bool fallback = false; Loading @@ -533,6 +528,12 @@ int res_nsend(ResState* statp, const uint8_t* buf, int buflen, uint8_t* ans, int } } // If parallel_lookup is enabled, it might be required to wait some time to avoid // gateways from dropping packets if queries are sent too close together. if (sleepTimeMs != 0ms) { std::this_thread::sleep_for(sleepTimeMs); } res_stats stats[MAXNS]{}; res_params params; int revision_id = resolv_cache_get_resolver_stats(statp->netid, ¶ms, stats, statp->nsaddrs); Loading
tests/doh/src/client.rs +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ impl Client { let headers = vec![ quiche::h3::Header::new(b":status", b"200"), quiche::h3::Header::new(b"content-type", b"application/dns-message"), quiche::h3::Header::new(b"content-length", &len.to_string().as_bytes()), quiche::h3::Header::new(b"content-length", len.to_string().as_bytes()), // TODO: need to add cache-control? ]; Loading