I am using MAPI C library to talk to multiple monetdb databases.
I cache the connection (struct mapi) to reduce overhead.
However if a database/machine restarts then the connection is not usable.
How do I determine if a cached connection is usable before actually using it.
I have tried mapi_is_connected() and mapi_ping().
But mapi_ping always returns 0
while mapi_is_connected always returns 1.
Thansk and Regards,
Tapomay.