I’m creating a connection from a thread on an audio plugin.
If the connection is still delayed and I need to stop the thread it’s connecting from executing, how do I safely stop this?
The callback (on windows) doesn’t seem to be being called while the connection is outstanding. It’s blocking in HttpSendRequestEx.
Even with the timeout set to 2 seconds, and the stopThread timeout set to 6 seconds I’m still hitting the bad-karma kill thread assertion. If I increase the timeout to 16 things exit nicely but unacceptably slowly, and the http timeout is very tight.