vibe-d / vibe.d

Official vibe.d development
MIT License
1.15k stars 286 forks source link

Failed to lookup host, but works 2nd time #1440

Open skoppe opened 8 years ago

skoppe commented 8 years ago

I'm on windows, dmd 2.070.0, vibe 0.7.27, and am doing a lot of requestHTTP calls.

Everytime I run my program it first fails with a failure to lookup host. Then I directly run it again, and it works. Both With libevent and libasync. (I have seen this lookup error before).

Haven't seen this problem on linux.

s-ludwig commented 8 years ago

I'd guess this must be a libevent issue, it implements its own DNS client. What error message/code does it report in the exception?

skoppe commented 8 years ago

Let me make a test program that reproduces it.

skoppe commented 8 years ago

Thought it was going to be easy to reproduce but can't quite get it.

Found the old program and the error is:

Failed to lookup host 'xxx.com': non-recoverable failure in name resolution