[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9654] getaddrinfo failed when addr has a upper char
From: |
armink.ztl |
Subject: |
[lwip-devel] [patch #9654] getaddrinfo failed when addr has a upper character |
Date: |
Tue, 12 Jun 2018 23:11:59 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36 |
Follow-up Comment #2, patch #9654 (project lwip):
look at this test code
int result;
struct addrinfo hint, *res = NULL;
memset(&hint, 0, sizeof(hint));
result = lwip_getaddrinfo("www.Google.com", NULL, &hint, &res);
printf("getaddrinfo(www.Google.com) result is %d\n", result);
result = lwip_getaddrinfo("www.google.com", NULL, &hint, &res);
printf("getaddrinfo(www.google.com) result is %d\n", result);
when NOT using my patch, the log is
getaddrinfo(www.Google.com) result is 202
getaddrinfo(www.google.com) result is 0
Many developer not known "dns 0x20 bit encoding". So it will take many time on
202 error code.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9654>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/