¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

FYI: C++ multi-threaded crash in eConnectImpl - gethostbyname (linux)


 

Hello, this is just FYI.? ? My process started crashing recently when it tried to connect to TWS.? I have two threads each running its own instance of the ib client.? To fix, I had modified EClientSocket::eConnectImpl()? from using gethostbyname() call to using gethostbyname_r() call to resolve the issue.? To be clear -? If you only have a single instance of ib client, you don't need to worry about this. Hope it will be helpful to someone.?