Skip to Content.
Sympa Menu

freetds - Re: [freetds] How to cancel ct_results ?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] How to cancel ct_results ?
  • Date: Tue, 15 Sep 2009 22:05:39 -0400

Jarek wrote:
> when connection to database
> is lost just before call to ct_results, my application hangs. It looks
> that ct_results doesn't return in such case.

It might be the case. Timeout logic is tricky, and no one has done much
with the ct-lib code since I re-wrote the libtds layer to correctly handle
timeouts (for the first time) in db-lib. What ct-lib needs is someone
with interest and knowledge to apply himself to the problem.

What you could do is add a src/ctlib/unittests/timeout.c to demonstrate
the problem. That could be used to verify it and perhaps spur someone
into fix it, if fixing it needs.

HTH.

--jkl






Archive powered by MHonArc 2.6.24.

Top of Page