-
Notifications
You must be signed in to change notification settings - Fork 36
Fix cname issue #73
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
Fix cname issue #73
Conversation
…ess and parsing functionality.
… them. Added socket call tests to nonbreaking changes to test_dns_server_nonbreaking_changes.py.
…names for readability.
… 6 are set for a pointer.
…efore returning -1 after a timeout.
This fix has been tested on a Wiznet 5500 with 489 unique domain names. Without the fix, 192 did not return an IPv4 address. With the fix, 15 domain names did not resolve and none of these 15 responses included an IPv4 address. |
@BiffoBear Could you resolve the branch conflict on Also include the REPL output from your hardware test,
|
Here are the REPLs from the old version, the new version, and the failures from the new version with Not sure how I can resolve the merge conflict. My (admittedly limited) understanding of GIT is that this will require a manual merge? Please advise. |
Hi, I've merged the latest version into the PR and there are no more conflicts. |
# Conflicts: # adafruit_wiznet5k/adafruit_wiznet5k_dns.py
I merged main to this branch to resolve conflicts. I'll test this one out when I get back into this again in the upcoming week. @BiffoBear do you happen to still have the code that ran the tests with the results posted above? I can try to whip up something to spot check a few, but if you've got it around still and can share it'd help make testing quicker for me. |
@FoamyGuy Hi, I have the Python script, see below. Here are text files with the URLs that you can iterate through. One has URLs that resolve with the original version( |
@FoamyGuy Cocktail coded a test script. YMMV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BiffoBear thank you!
I tested this out successfully with the given code and lists of URLs using a Feather ESP32-S2 TFT and Ethernet Featherwing.
In my case the old version was always failing the second iteration with an exception raised about bytes object not having append. The first iteration did succeed or fail the same as noted by the file that I took it from.
With the new version I get vast majority successful responses from everything in both lists. I stopped it before it made it to the end, and there were a few no IP found sprinkled in, but way way more successful lookups than not.
I have one open question about one of the asserted values in a test, but everything looks good to me beyond that.
@BiffoBear I'm still getting the 21 vs. 22 error when I run the DNS test with the latest version:
|
…same result across different platforms.
@FoamyGuy I've added a Please let me know whether you get 12 as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now. Thank you @BiffoBear for these improvements and sticking with it through some changes!
The latest version does allow the tests to pass for me locally with a value of 12 for the one that was problematic before.
I tested these changes successfully on Feather TFT S2.
Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 1.13.4 from 1.13.3: > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#73 from BiffoBear/fix_CNAME_issue Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Updated download stats for the libraries
closes #19 #24
gethostbyname
function to handle the exceptions and maintain the current -1 ness.