First, make sure you can do a non-STAF ping from your desktop to the VM's 
IP address (if that doesn't work then you have a TCP/IP configuration 
issue).

If that works, then try increasing the select() timeout for the STAFTCP 
connection provider.  The STAFTCP connection provider's select() timeout 
is based on the CONNECTTIMEOUT (specified in milliseconds) which defaults 
to 5000 (5 seconds)..  Try increasing the CONNECTTIMEOUT and see if that 
resolves the problem.  For example, on your laptop, modify the STAF.cfg 
file (in C:\STAF\bin) by adding the CONNECTTIMEOUT option to the ssl and 
tcp interface lines.  For exxample, to increase the ConnectTimeout to 30 
seconds: 

interface ssl library STAFTCP option Secure=Yes option Port=6550 option 
ConnectTimeout=30000
interface tcp library STAFTCP option Secure=No  option Port=6500 option 
ConnectTimeout=30000

Section "4.3.2 STAFTCP Connection Provider" in the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDRNETWORKCFG talks about 
the CONNECTTIMEOUT option as follows:
CONNECTTIMEOUT=<Number> specifies the maximum time in milliseconds to wait 
for a connection attempt to a remote system to succeed. The default is 
5000 (5 seconds). You may need to increase this value if you are 
consistently receiving return code 16 when trying to communicate with 
distant STAF systems. Note that the total time to wait for a connection to 
a remote system to succeed is (CONNECTTIMEOUT * CONNECTATTEMPTS) + 
(CONNECTRETRYDELAY * (CONNECTATTEMPTS - 1)). If using the defaults, the 
maximum total time to wait for a connection to a remote system to succeed 
is (5000 * 2) + (1000 * 1), which equals 11 seconds. The CONNECTATTEMPTS 
and CONNECTRETRYDELAY values are operational parameters that can be set in 
the STAF configuration file.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   "Yashaswi S. Kumar" <yashaswi.ku...@sanovi.com>
To:     <staf-users@lists.sourceforge.net>
Date:   05/11/2011 09:51 AM
Subject:        [staf-users] Help Regarding socket connectivity



Hi all,
I created 4 VM’s and the staf is running on all of them. But the problem 
is that I am unable to ping the VM using the staf ping command from my 
desktop but the reverse is happening fine.
The error: C:\Users\Yashaswi>staf 192.168.20.199 ping ping
Error submitting request, RC: 22
Additional info
---------------
STAFConnectionReadUInt: select() timeout: recv() RC=0: 22
Help required ASAP.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to