mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Revert "resolv_test.c: also cope with CONNREFUSED errors returned by recvfrom"
This reverts commit 6174537c24
.
This commit is contained in:
@@ -600,7 +600,7 @@ server_thread_udp_process_one (struct resolv_test *obj, int server_index)
|
||||
unsigned char query[512];
|
||||
struct sockaddr_storage peer;
|
||||
socklen_t peerlen = sizeof (peer);
|
||||
ssize_t length = recvfrom (obj->servers[server_index].socket_udp,
|
||||
size_t length = xrecvfrom (obj->servers[server_index].socket_udp,
|
||||
query, sizeof (query), 0,
|
||||
(struct sockaddr *) &peer, &peerlen);
|
||||
/* Check for termination. */
|
||||
@@ -613,12 +613,6 @@ server_thread_udp_process_one (struct resolv_test *obj, int server_index)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (length < 0)
|
||||
{
|
||||
/* The other end had closed the socket, and we are notified only now. */
|
||||
TEST_VERIFY_EXIT (errno == ECONNREFUSED);
|
||||
return true;
|
||||
}
|
||||
|
||||
struct query_info qinfo;
|
||||
parse_query (&qinfo, query, length);
|
||||
|
Reference in New Issue
Block a user