diff options
author | rowanbeentje <rowan@beent.je> | 2012-05-15 23:40:08 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-05-15 23:40:08 +0000 |
commit | d2237c05664461e086664d25fbe717a06e9b5b75 (patch) | |
tree | 09a12ae538f4671f44866008bd493a47168f8b19 /Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h | |
parent | 25238e46acd039cdaf410f31b2f064f2ea3db057 (diff) | |
download | sequelpro-d2237c05664461e086664d25fbe717a06e9b5b75.tar.gz sequelpro-d2237c05664461e086664d25fbe717a06e9b5b75.tar.bz2 sequelpro-d2237c05664461e086664d25fbe717a06e9b5b75.zip |
Improve connection keepalive, disconnect, and connection loss after reviewing crash logs and testing a number of situations:
- Improve stability of closing connections after a connection loss
- Minimise prompting a user for connection state restore if closing windows/tabs
- Allow cancellation of keepalive ping threads to prevent crashes after deallocation of parent
- Manually handle ping thread state struct memory to avoid cross-thread deallocation issues
- Improve disconnection speed and resilience
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h')
-rw-r--r-- | Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h index a44ae46f..3400ecfd 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h @@ -86,7 +86,8 @@ CGFloat keepAliveInterval; uint64_t lastKeepAliveTime; NSUInteger keepAlivePingFailures; - pthread_t keepAlivePingThread; + NSThread *keepAliveThread; + pthread_t keepAlivePingThread_t; BOOL keepAlivePingThreadActive; BOOL keepAliveLastPingSuccess; BOOL keepAliveLastPingBlocked; |