Evgeny 5491511010 Fix uasync socket counting bug causing test failures
Root cause: Use-after-free bug due to stale pointers after realloc()
- Socket array growth via realloc() moved memory to new location
- Test stored old pointers that became invalid after memory move
- Caused memory corruption and socket counting failures

Solution: Modified test to avoid storing stale pointers
- Store file descriptors instead of raw pointers
- Use lookup approach to get current pointers during removal
- Eliminates use-after-free issue entirely

Results: All uasync tests now pass without memory leaks
- test_u_async_performance: 25/25 sockets (was failing before)
- No more socket counting mismatches or corruption
- Clean memory stats and proper cleanup
2026-01-25 14:18:30 +03:00
…
…
…
…
…
S
Description
No description provided
Readme GPL-3.0
447 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 77.8%
C++ 12.7%
Kotlin 5.3%
HTML 2.6%
Python 0.5%
Other 0.8%