Skip to content

Conversation

@klarrimore
Copy link
Contributor

I have some issues with DNS Servers rolling their response id at 65536. RubyDNS's continues incrementing regardless and causes an obvious issue. Also git ignoring test log files and lowered the log level on responses.

@ioquatix
Copy link
Member

ioquatix commented Oct 8, 2013

Hi, this looks like a good change. Do you think it makes sense just to hard code the limit as I'm sure that the sequence number must be < 2^16?

@klarrimore
Copy link
Contributor Author

Yes, i believe you're right. At first i thought it was overflow server side but I think the protocol just has 2 bytes allocated for the id. 2^16 should work for all cases.

something like:

MAX_ID = 2**16 def next_id! return (@sequence += 1) % MAX_ID end 
@ioquatix
Copy link
Member

ioquatix commented Oct 8, 2013

Okay, I have integrated these changes, and released gem version 0.6.6 - let me know if this resolves the issues you were having.

@ioquatix ioquatix closed this Oct 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants