4 ms·
cURL supports it. See https://ec.haxx.se/usingcurl-persist.html https://ec.haxx.se/usingcurl-persist.html If your question is how to reuse the connection pool
by yeukhon 9y ago
cURL supports it. See https://ec.haxx.se/usingcurl-persist.html https://ec.haxx.se/usingcurl-persist.html
If your question is how to reuse the connection pool for, say, 1000 DNS queries from one machine, curl already uses a connection pool. Next, to use fewer TCP connections and get faster response, my first proposal is HTTP/2 which supports TCP multiplexing such that multiple requests can be issued over a single TCP connection. Every response is return asynchronously, we can achieve nonblocking.
cURL also supports HTTP/2.
Speaking of word: it seems author of curl project prefers “curl” over “cURL”? Worth asking.
- sapphire_tomb 9y agoFrom what I understand the "cURL" format of the word is popular mostly with users of the PHP bindings. "curl" is what the project uses, but I'm not sure they really care what other people refer to it as :)
- sohkamyung 9y agoI think it depends on whether you are referring to the project or the executable [1]: "cURL is the name of the project." [1] https://curl.haxx.se/docs/faq.html#What_is_cURL https://curl.haxx.se/docs/faq.html#What_is_cURL
- pilif 9y ago> Every response is return asynchronously, we can achieve nonblocking. same goes for UDP which DNS runs over normally. Like the original commenter, I fail to see how stacking DNS over HTTP over TLS over TCP over IP is going to be faster than running DNS over UDP over IP. Also, you still need to resolve the address of your DNS-over-HTTP server, which you'd probably still do over traditional DNS-over-UDP. This feels like doing nothing but adding complexity for zero gain.
- IshKebab 9y agoZero gain except going from easy eavesdropping, blocking, censoring, etc. to effectively unblockable, private and secure? Ok. Also you would probably need to put in the IP of the DNS server manually, exactly like you have to with DNS now.
- yeukhon 9y agoI would love to know how widely used UDP over TLS is in the wild.
- bruce_one 9y agoNot quite the same, but QUIC is close to this description description, so it might be higher than initially expected? From 2016: https://www.bizety.com/2016/01/26/half-of-chrome-to-google-traffic-now-run-over-quic/ https://www.bizety.com/2016/01/26/half-of-chrome-to-google-t...