We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a query times out it doesn't close the socket. For UDP I think this is expected, but not so much for TCP:
local dns_record = require "cqueues.dns.record" local dns_resolvers = require "cqueues.dns.resolvers" local dns_config = require "cqueues.dns.config" local pool = dns_resolvers.new(dns_config.stub{ nameserver = { "8.8.8.8" }; tcp = dns_config.TCP_ONLY; }) local ans, errno = pool:query("google.com", dns_record.A, dns_record.IN, 0.0001) print(ans, errno) --> nil, ETIMEDOUT -- socket gets left open but can't be reused.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If a query times out it doesn't close the socket. For UDP I think this is expected, but not so much for TCP:
The text was updated successfully, but these errors were encountered: