Skip to content

Fix: race conditions in DefaultNetworkService.lookup by removing async from AttachmentAllocator.lookup#1699

Open
GarySkywalker-droid wants to merge 3 commits into
apple:mainfrom
GarySkywalker-droid:fix/dns-racing-condition
Open

Fix: race conditions in DefaultNetworkService.lookup by removing async from AttachmentAllocator.lookup#1699
GarySkywalker-droid wants to merge 3 commits into
apple:mainfrom
GarySkywalker-droid:fix/dns-racing-condition

Conversation

@GarySkywalker-droid

@GarySkywalker-droid GarySkywalker-droid commented Jun 11, 2026

Copy link
Copy Markdown

Type of Change

  • [*] Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Removed the async from AttachmentAllocator.lookup, causing the race conditions because the deallocator being called while lookup is running as it overrides the actor's reentrancy protection. Leading to at times mac address being returned as nil and fixes the #1693

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

…ace conditions because the deallocator being called while lookup is running as it overrides the actor's reentrancy protection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant