TWSD-797 WebAgent overwrite IP address of the domain in high frequency DNS resolving
Review Request #920 — Created June 20, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| peteryeh | |
| APV10 | |
| rel_apv_10_7_2 | |
| TWSD-797 | |
| Reviewers | |
| kevin.poh, tanya, timlai, timsu | |
When APV try to resolve two domain name at the same time in very high frequency, in which one has IP address to resolve and the other one doesn’t has, WebAgent might has probability to overwrite IP address to both domain resolving result.
Root Cause:
This is cause by 1st entry referenced a memory address that is freed and re-allocated for 2nd entry during process. When we assigned new value for 2nd entry at the address, 1st entry will use the same value as well.Solution:
Modifying to avoid referencing the address and just use bcopy to copy value.Note:
Disable some unnecessary log
