requestify icon indicating copy to clipboard operation
requestify copied to clipboard

Making requests to host name in format something.something makes requestify slow

Open arttu76 opened this issue 11 years ago • 0 comments

Hi and first of all thanks for an amazing module!

I had the following entries in my /etc/hosts

127.0.0.1 foo.local
127.0.0.1 foolocal
127.0.0.1 foo

Whenever making a get request with the name "foo.local", requestify took over 5 seconds to start the request - as if it spent ages in host name lookup. If I used any of the other two variations (or used a plain ip address), then requestify worked ok.

If the requests were done from, for example, a web browser, every request was very fast.

This is on OSX, requestify version is 0.1.16 and with node 0.10.26 (tested it with node 0.8.x and requestify behaved similarly).

I'm sorry I haven't really looked deeply into this - perhaps this is not a requestify issue after all - but every other http library worked just fine so I thought maybe you were interested in testing this at your end...

arttu76 avatar Mar 03 '14 11:03 arttu76