Hi,
I am using securebridge to tunnel PostgreSQL/MySQL connections and I have everything working, but when I run a long running query through the channel it blocks the entire application.
Does the channel object need to reside in a seperate thread? I thought that when I connected the channel it would spawn it's own thread.
What about the sshclient, does it's listener run in a thread or should I be putting that in a seperate thread as well?
Thanks,
Snorkel
TscSSHChannel question
Re: TscSSHChannel question
SecureBridge creates own threads for port listener and for every new tunnel channel.
You should call the TScSSHClient.Connect and TScSSHChannel.Connect methods in the main thread of your appliction.
You should call the TScSSHClient.Connect and TScSSHChannel.Connect methods in the main thread of your appliction.
Please send a complete sample to dmitryg*crlab*com to demonstrate this problem.snorkel wrote:I am using securebridge to tunnel PostgreSQL/MySQL connections and I have everything working, but when I run a long running query through the channel it blocks the entire application.
Re: TscSSHChannel question
Never mind, it was a problem in my code with a message handler in the main thread.Dimon wrote:SecureBridge creates own threads for port listener and for every new tunnel channel.
You should call the TScSSHClient.Connect and TScSSHChannel.Connect methods in the main thread of your appliction.
Please send a complete sample to dmitryg*crlab*com to demonstrate this problem.snorkel wrote:I am using securebridge to tunnel PostgreSQL/MySQL connections and I have everything working, but when I run a long running query through the channel it blocks the entire application.