Skip to Content.
Sympa Menu

freetds - Re: [freetds] libct ct_connect thread_safe

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] libct ct_connect thread_safe
  • Date: Thu, 15 Dec 2011 21:27:09 -0500

On Thu, 15 Dec 2011 11:06:39 -0500
christos AT zoulas.com (Christos Zoulas) wrote:

> | I have 2 threads each with their *own* connection to different
> | servers. The problem is
> |
> | static SSL_CTX *ssl_ctx
> |
> | inside net.c and the way it is being initialized.
>
> This is easily fixed as follows... I added some othe minor fixes as a
> christmas bonus.

Thanks, Christos. Applied to CVS HEAD. Merry Christmas to you, too.

IIUC the use-case here is two threads each opening its own connection.
That should work, yes.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page