Archived Forum Post

Index of archived forum posts

Question:

ChilkatSocket DnsLookup Timeout Issue

Oct 08 '14 at 22:14

Hi,

It seems that the maxWaitMs parameter of the DnsLookup method is being ignored (tested with ActiveX 9.5.0.45).

For example, if I call DnsLookup("google.com", 2000) on a computer where the DNS server is misconfigured, it takes about 17-18 seconds to timeout instead of 2.

The LastErrorText result is:

ChilkatLog:
  DnsLookup:
    DllDate: Oct  7 2014
    ChilkatVersion: 9.5.0.45
    UnlockPrefix: STATSLSocket
    Username: FIVEDEV:JB
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    fd: 0xffffffff
    objectId: 9
    dnsLookup:
      domainLookup_ipv4:
        domainLookupIpv4_win32:
          resolveHostname1:
            Resolving domain name (IPV4) via gethostbyname
          --resolveHostname1
          DNS timed out.
        --domainLookupIpv4_win32
      --domainLookup_ipv4
     DNS lookup failed.
      domain: google.com
    --dnsLookup
    Failed.
  --DnsLookup
--ChilkatLog

The error text indicates a timeout, but doesn't mention the timeout period, so it's hard to know for sure what value it is using. Anybody else notice this issue?


Accepted Answer

This should fix it:

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-win32.zip

64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-x64.zip


Answer

Thanks, I'll investigate..