Skip to content

Commit 084314b

Browse files
authored
Merge pull request micropython#11016 from dhalbert/remove-lwip-workaround
ports/espressif/common-hal/socketpool/SocketPool.c: remove old workaround for lwip issue
2 parents 088f2bd + b2fdd17 commit 084314b

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

ports/espressif/common-hal/socketpool/SocketPool.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ void common_hal_socketpool_socketpool_construct(socketpool_socketpool_obj_t *sel
2424
// common_hal_socketpool_socket is in socketpool/Socket.c to centralize open socket tracking.
2525

2626
int socketpool_getaddrinfo_common(const char *host, int service, const struct addrinfo *hints, struct addrinfo **res) {
27-
// As of 2022, the version of lwip in esp-idf does not handle the
28-
// trailing-dot syntax of domain names, so emulate it.
29-
// Remove this once https://github.com/espressif/esp-idf/issues/10013 has
30-
// been implemented
31-
if (host) {
32-
size_t strlen_host = strlen(host);
33-
if (strlen_host && host[strlen_host - 1] == '.') {
34-
mp_obj_t nodot = mp_obj_new_str(host, strlen_host - 1);
35-
host = mp_obj_str_get_str(nodot);
36-
}
37-
}
38-
3927
char service_buf[6];
4028
snprintf(service_buf, sizeof(service_buf), "%d", service);
4129

0 commit comments

Comments
 (0)