Conall O'Cofaigh (ICS) is seeing the following RC 22 error submitting any STAF service request to a Windows system when using the tcp interface:
C:\>STAF winserver1 PING PING
Error submitting request, RC: 22
Additional info
---------------
STAFConnectionReadUInt: Error reading from socket: other side closed socket: 22
C:\>
This occurs after running a Java application which simulates users logging into Smartcloud on the Windows system for about 30 minutes. During the first 30 minutes or so, STAF service requests submitted to this Windows system using the tcp interface work fine. But after about 30 minutes, all STAF service requests submitted to this Windows system using the tcp interface fail with the RC 22 error above. Note that local STAF service requests submitted on the Windows system work fine. If you shutdown STAF and restart STAFProc on this Windows system while it is in this state, the RC 22 error still occurs immediately after restarting STAFProc. However, as soon as the Java application is stopped on the Windows system, STAF service requests submitted to this Windows system using the tcp interface work fine (without restarting STAF).
This problem is recreatable on all Windows systems that run this Java application. Conall provided me with this Java application and I was also able to recreate the problem on my Windows system after running this Java application for about 30 minutes.