I wanted to ask if it is safe to attach in one thread and then query from
another?
I am using fbclient2.5 with mine nodejs lib and have strange issues.
NodeJS uses thread pool so my asynchrnous call may go into different thread
each time and from time to time my app just hangs
(i.e. some call to isc_dsql_prepare or isc_dsql_execute never returns) or
returns error
"Error reading data from the connection."
Though it could be errors in my driver. I can not reproduce it slower on
machine only on fast production Xeon.
Have not backtraced it yet - to see what call makes problems.
>From single thread everything works ok.
2012/5/31 Alex Peshkoff <peshk...@mail.ru>
> On 05/31/12 07:30, mann1402 wrote:
> > Thanks a lot Vlad for quick response.
> >
> > Sorry for missing information.
> >
> > fbclient version is 2.1.1.17910 in Windows 2k3 Service Pack 2 x86
> processor.
> >
> > Also i am using SQLAPI library to connect to Firebird. If possible, can
> you
> > please elaborate "manually serialize calls within same connection"
>
> fbclient pre-2.5 is not thread safe
> calls to API functions should be serialized in your app
>
> BTW, the best solution will be to use 2.5 client instead.
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel