Closed umpirsky closed 12 years ago
Can reproduce, thanks for this report.
It's interesting, the script is actually connecting to the server, but some of the connections get closed immediately. This might be to protect from flooding.
If I add a small delay to each query, I get all results.
And confirmed, if I use igor$n.com
I get all results. So that is simply something we cannot fix in the library. It is specific to the io
whois server.
Ah, great, thanks.
But wait, I must get some response anyway, do I? It looks like callback isn't called at all for some queries.
BTW, can I see how did you added small delay? And what did you mean in the last comment when you say it works with igor$n.com
?
You don't get a response, the connection is closed. The end callback is called on the connection.
I added a delay by using $loop->addTimer()
. And I replaced igor%s.io
with igor%s.com
and it worked without the delay. Which means the issue is specific to the io
whois server.
It would be nice if one can handle cases like this (closed connections).
Yes, I noticed that it works for .com
domains.
Thanks a lot.
It should currently call your callback with an empty result. So you can handle that case yourself.
In this example I prepared 10 whois queries:
But in the output I found only 5 results: