[freetds] SOLVED: timeouts

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Tue Jan 16 04:13:08 EST 2007


> 
> ODBC's specification is a little vague.  Probably if you set a query
> timeout of 20 seconds and pull the wire, you'll get a failure in 40
> seconds, because when the timer expires the library will make one
> good-faith effort to cancel the pending request (which will 
> itself timeout
> 20 seconds later). I'm sure Frediano made a sensible choice 
> in any case.  
> 

Mmmm... are you sure?
No, currently it returns always TDS_INT_TIMEOUT (that is send cancel and
continue) so probably it just keep waiting forever...

> As it happens, my own use of FreeTDS doesn't depend on 
> timeouts working
> correctly.  I created my own itch, if you will; I didn't like the
> perplexed messages that show up on this list every few months 
> saying that
> timeout didn't seem to work right.  A person can waste a lot of time
> before coming to the conclusion that it's FreeTDS's fault.  Fixing the
> code was my little act of mercy.  
> 
> So, Happy New Year.  Thanks for listening, and enjoy your 
> subtly improved
> library.  
> 

Happy New Year !

freddy



More information about the FreeTDS mailing list