-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
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
IPs returning multiple ASNs cuts off legitimate responses #11
Comments
How do you feel about something like this
With my above debug output:
The only thing I noticed was that there's a delay from the break to the return of Thanks! |
Could you give me an example of an IP that break? |
Where exactly are you seeing the delay? The only thing I could think of that could cause that is a deferred statement, but the only thing deferred is a mutex unlock. If there is actually a real problem, please open a new issue. |
That change looks fine though 👍 |
|
Yeah I'll need to investigate a lot more before I'm there, but I'm looking into it. I'll open a new issue when I find it. Thanks! |
Working on a diff |
This was the timeout I'm talking about. I'd guess the
|
If this is occuring on LookupIPs, I think you must be experiencing some sort of rate limit. We set the WriteDeadline dynamically based on the number of requested IPs. |
The timeout example I sent was from |
So I modified the code above to include some debug timing information:
Here's the output of the above
What's happening is that
I can think of a couple ways to handle this, but they aren't great. Suggestions would be appreciated.
|
I actually tested B:
|
I like the counter idea, but I think it would just have to be a set ( |
Ahh right, the empty struct makes more sense. I was still using my debug map when I was trying to figure out what was going on :) |
I just tested RFC 1918 IPs and
|
When using the
whoisClient
and theLookupIPs
function there are times when Cymru returns multiple ASNs (I haven't looked into why).Because of the
finished
boolean checking the length of the response vs the capacity of the response some legitimate IPs are getting dropped from the response:I added in some debugging
The text was updated successfully, but these errors were encountered: