Evgeny d0268563a1 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
2026-01-18 12:42:42 +03:00
S
Description
No description provided
Readme GPL-3.0
487 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 63.4%
C++ 18.6%
Kotlin 9.3%
HTML 5.5%
Python 1.2%
Other 1.9%