When doing SCM checkin, checkout, hsync, hrefresh etc. transactions, due to slow network you might experience random errors like this:
E03020134: Unable to establish a remote connection (PEC ec=8).
In such cases, the PEC rtserver.cm and rtclient.cm files can be modified to increase timeout value to avoid this error.
CA Harvest Software Change Manager v12.1 and up
In the rtserver.cm file located under $RTHOME\standard directory, add the following lines, if they do not already exist:
setopt CONN_MAX_RESTARTS 100 setopt CLIENT_RECONNECT_TIMEOUT 10 setopt CLIENT_CONNECT_TIMEOUT 40 setopt SOCKET_CONNECT_TIMEOUT 15
In the rtclient.cm file located under $RTHOME\standard directory, add the following lines, if they do not already exist:
setopt _socket_tcp_nodelay true setopt _conn_init_timeout 30.0
setopt ptm_client_accept_timeout 300 setopt ptm_server_accept_timeout 300
setopt server_read_timeout 120.0 setopt server_write_timeout 120.0
The rtclient.cm file should be changed on any computer with SCM components, like workbench client, plugin client etc, that experiences the PEC error. The rtserver.cm file should only be changed on the machine where the rtserver process is running ( by default, it is the SCM broker machine). Once the cm files are changed, please shut down any Harvest client-side applications, then the Broker and HServers, and last of all the RTServer. Restart the Broker (it will automatically start up the RTServer) and then your client-side application.