Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM Client/Server » View Thread |
Messages 1 to 2 of 2 total |
Reconnection and threads |
Tue, Apr 1 2008 12:39 AM | Permanent Link |
Oliver Bock | I have been testing automatic database reconnection by pulling a network
cable out and putting it back in again. I observed that when a client thread reconnects it does not necessarily reconnect to its old thread on the server. (In my example I had two client threads. They both disconnected when pings were not received. When I plugged the network cable back in I noticed them reconnecting to each other's original threads on the server.) Is this behaviour by design? If so I may need to be more careful with my thread-global variables. Oliver |
Tue, Apr 1 2008 3:12 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Oliver,
<< I have been testing automatic database reconnection by pulling a network cable out and putting it back in again. I observed that when a client thread reconnects it does not necessarily reconnect to its old thread on the server. (In my example I had two client threads. They both disconnected when pings were not received. When I plugged the network cable back in I noticed them reconnecting to each other's original threads on the server.) Is this behaviour by design? If so I may need to be more careful with my thread-global variables. >> Yes, unfortunately we cannot control which thread ids are assigned to new threads, so we simpy piggy-back the existing session on to the newly-created thread (or re-used thread, in the case of the thread cache being used). -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, April 24, 2024 at 11:07 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |