Is there a way to modify connection timeout?
Say be able to have connect give up after x number of seconds?
6.6.2-RC Connection Timeout
Moderators: gto, cipto_kh, EgonHugeist
Firebird at the moment does not support timeout=X but changing:
ZdbcInterbsae6.pas
Append at the end of "constructor TZInterbase6Connection.Create"
ConnectTimeout := StrToIntDef(Info.Values['timeout'], -1);
if ConnectTimeout >= 0 then
self.Info.Values['isc_dpb_connect_timeout'] := IntToStr(ConnectTimeout);
(declaring ConnectTimeout : integer; at the beginning of that function)
ZDbcInterbase6Utils.pas
case ParamNo of
0: Continue;
isc_dpb_set_db_SQL_dialect:
Dialect := StrToIntDef(ParamValue, 0);
isc_dpb_user_name, isc_dpb_password, isc_dpb_password_enc,
isc_dpb_sys_user_name, isc_dpb_license, isc_dpb_encrypt_key,
isc_dpb_lc_messages, isc_dpb_lc_ctype, isc_dpb_sql_role_name, isc_dpb_connect_timeout:
Adding "isc_dpb_connect_timeout" after ", isc_dpb_sql_role_name, "
ZdbcInterbsae6.pas
Append at the end of "constructor TZInterbase6Connection.Create"
ConnectTimeout := StrToIntDef(Info.Values['timeout'], -1);
if ConnectTimeout >= 0 then
self.Info.Values['isc_dpb_connect_timeout'] := IntToStr(ConnectTimeout);
(declaring ConnectTimeout : integer; at the beginning of that function)
ZDbcInterbase6Utils.pas
case ParamNo of
0: Continue;
isc_dpb_set_db_SQL_dialect:
Dialect := StrToIntDef(ParamValue, 0);
isc_dpb_user_name, isc_dpb_password, isc_dpb_password_enc,
isc_dpb_sys_user_name, isc_dpb_license, isc_dpb_encrypt_key,
isc_dpb_lc_messages, isc_dpb_lc_ctype, isc_dpb_sql_role_name, isc_dpb_connect_timeout:
Adding "isc_dpb_connect_timeout" after ", isc_dpb_sql_role_name, "
-
- Fresh Boarder
- Posts: 22
- Joined: 26.08.2008, 12:36
-
- Fresh Boarder
- Posts: 22
- Joined: 26.08.2008, 12:36
-
- Fresh Boarder
- Posts: 22
- Joined: 26.08.2008, 12:36