윈도우NT에 FB2.0을 설치하였습니다. 그런데 일정시간 질의가 없으면 연결이 끈어지는 현상이 발생합니다.
그래서 FB문서를 찾아 보았더니 다음과 같은 내용이 있더군요.
# Normally, Firebird uses SO_KEEPALIVE socket option to keep track of
# active connections. If you do not like default 2-hour keepalive timeout
# then adjust your server OS settings appropriately. On UNIX-like OS's,
# modify contents of /proc/sys/net/ipv4/tcp_keepalive_*. On Windows,
# follow instrutions of this article:
#
http://support.microsoft.com/default.aspx?kbid=140325
KEEPALIVE TIMEOUT이 2시간으로 되어 있어 OS의 설정값을 바꾸어야 한다는 것 같습니다.
그래서
http://support.microsoft.com/default.aspx?kbid=140325 에서 내용을 보았더니
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters에 다음의 KEY를
추가해주면 되는 것 같더군요.
KeepAliveTime
Key: Tcpip\Parameters
Value Type: REG_DWORD - Time in milliseconds
Valid Range: 1 - 0xFFFFFFFF
Default: 7,200,000 (two hours)
Description: The parameter controls how often TCP attempts to verify that an idle connection is still intact by sending a keep alive packet. If the remote system is still reachable and functioning, it will acknowledge the keep alive transmission. Keep alive packets are not sent by default. This feature may be enabled on a connection by an application.
DEFAULT 시간을 28,800,000로 늘려서 추가해 주었는데도 여전히 같은 현상이 일어납니다.
해결방법좀 알려주세요.