on 2011 Dec 30 7:03 AM
Just something I stumbled accross since we went from 8.0.3 to 12.0.1:
When debugging an ODBC application (running on a different box and connectin via TCP/IP) and staying within a breakpoint for some time, it seems that with the default liveness checking (120 seconds), the liveness times out unexpectedly, and the connection gets dropped. (The debugged thread is using a database connection but does not necessarily have cursors open during the breakpoint.)
Setting LTO=0 in the connection string prevents this undesired behaviour.
As I'm not aware that I have changed the liveness settings between both versions, is this a known behaviour change?
Request clarification before answering.
This is expected behaviour. The client needs to send one or more packets within the liveness timeout to prevent the connection from being dropped. On an idle connection this is done by a thread started by the SQL Anywhere client DLL. All threads are stopped (frozen) when you are debugging an application and the application is paused by the debugger, so the thread that needs to send liveness packets can't.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the clarification - that's understandable.
However, I'm still somewhat irritated that I haven't noticed the behaviour with 8.0.3, and I'm quite sure I have never modified the -tl settings. So is there a change in behaviour w.r.t. v8?
FWIW, both the 8.0.3 and the 12.0.1 server have always used a non-standard -ti setting (-ti 0) - would this have any influence - and a different one in v8 than currently?
You should get liveness timeouts if the client is paused all the way back to ASA 6.0 and likely even earlier. Note there are no liveness packets on shared memory (we check if the process is running instead) so maybe that is why you didn't notice this before.
-ti (idle timeout) should have no impact on liveness (-tl)
User | Count |
---|---|
52 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.