maidsafe-archive / MaidSafe-RUDP

Implementation of Reliable UDP
Other
95 stars 51 forks source link

Fixes segmentation fault in FUNC_API_Send (MAID-191) #23

Closed inetic closed 9 years ago

inetic commented 9 years ago

When the test pc was under a heavy load, some tests from the FUNC_API_Send test group timed out. The previous code did not handle the case where the original async request did eventually get called after we've already received timeout so the next test received two async responses which tried to set std::future. This resulted in invalid memory read (reported by valgrind) which later caused segmentation faults.

inetic commented 9 years ago

Eh, failed style check, will do another one.