The cci_set_query_timeout function configures timeout value for query execution.
The timeout value configured by cci_set_query_timeout affects cci_prepare, cci_execute, cci_execute_array, the cci_execute_batch functions. When timeout occurs in the function and if the disconnect_on_query_timeout value configured in cci_connect_with_url connection URL is yes, it returns the CCI_ER_QUERY_TIMEOUT error.
These functions can return the CCI_ER_LOGIN_TIMEOUT error in case that login_timeout is configured in the connection URL, which is an argument of cci_connect_with_url function; this means that login timeout happens between application client and CAS during re-connection.
It is going through the process of re-connection between application client and CAS when an application restarts or it is re-scheduled. Re-scheduling is a process that CAS chooses an application client, and starts and stops connection in the unit of transaction. If KEEP_CONNECTION, broker parameter, is OFF, it always happens; if AUTO, it can happen depending on its situation. For details, see the description of KEEP_CONNECTION in the "System Configuration > Broker Configuration > Parameter by Broker."
int cci_set_query_timeout (int req_handle, int milli_sec);