I'm using MySQL++ as a wrapper around the MySQL C API.
When I suspend the database, using kill -SIGSTOP, the executing write
query does not timeout as expected.
The read/write timeout has been set to 1 second.
It looks like timeouts work on Red Hat Enterprise Linux 4 (compiler g++
(GCC) 3.
Hello,
I was wondering if anyone has successfully implemented timeouts on mysql
queries using the C API in Linux... my initial thought was to use a
SIGALRM to interrupt the query. When trying this, however, it appears
that the read() call made within the query is restarted after the signal
handl