mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
resolv: Serialize processing in resolv/tst-resolv-txnid-collision
When switching name servers, response processing by two server
threads clobbers the global test state. (There is still some
risk that this test is negatively impact by packet drops and
packet reordering, but this applies to many of the resolver tests
and is difficult to avoid.)
Fixes commit f1f00c0721
("resolv:
Handle transaction ID collisions in parallel queries (bug 26600)").
This commit is contained in:
@ -309,6 +309,11 @@ do_test (void)
|
|||||||
((struct resolv_redirect_config)
|
((struct resolv_redirect_config)
|
||||||
{
|
{
|
||||||
.response_callback = response,
|
.response_callback = response,
|
||||||
|
|
||||||
|
/* The response callback use global state (the previous_*
|
||||||
|
variables), and query processing must therefore be
|
||||||
|
serialized. */
|
||||||
|
.single_thread_udp = true,
|
||||||
});
|
});
|
||||||
|
|
||||||
for (int rcode = 0; rcode <= 5; ++rcode)
|
for (int rcode = 0; rcode <= 5; ++rcode)
|
||||||
|
Reference in New Issue
Block a user