Re: How to cancel ct_results ?
"James K. Lowden" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
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