Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault in SpeedTestClient::mkSocket (taganaka#14)
Replace the use of the non-reentrant gethostbyname() function by the thread-safe gethostbyname_r() one. Those segfaults are more likely to happen with a high number of threads, which is the case when testing high-bandwidth connections. This is also dependent on the libc/compiler, as the program started to segfault ~100% of the time when attempting to test a Fiber connection with the program compiled under gcc7 where the same program compiled under gcc5 was segfaulting ~%5 of the time.
- Loading branch information