I am working on a little project for that I require communicating with an http(s) API.
However, I am running into weird issues where sometimes httpclients or sockets just don't connect for no apparent reason, especially (but not only) after I ctrl+c the program and then restart it.
Before I continue debugging this I wanted to make sure that I can safely use these libraries from multiple threads, i.e. having a connection active in one thread, and also a connection in another thread (e.g. both connections continually calling recvLine).