Donnie,
You forgot to include OPTION before specifying the ConnectTimeout option.
You specified:
interface ssl library STAFTCP option Secure=Yes option Port=6550
ConnectTimeout=30000
Thus, the STAF command parser interpreted the value for the Port option
to be "6550 ConnectTimeout=30000", which of course is invalid so you got
an "Invalid Value" RC (47) for the Port option.
You need to specify:
interface ssl library STAFTCP option Secure=Yes option Port=6550 option
ConnectTimeout=30000
I like to capitalize the option names by specifying:
INTERFACE ssl LIBRARY STAFTCP OPTION Secure=Yes OPTION Port=6550 OPTION
ConnectTimeout=30000
For examples, see section "4.3.2 STAFTCP Connection Provider" in the STAF
User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRNETWORKCFG.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Donnie Cambre <donnie.cam...@wnco.com>
06/16/2010 01:29 PM
To
"'staf-users@lists.sourceforge.net'" <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] How to change STAF SSL interface connection timeout
I am using STAF 3.3.4 and want to change the SSL connection timeout. There
used to be a 'SET CONNECTTIMEOUT <value>' in STAF.cfg, but that was
changed. I read this in
http://staf.sourceforge.net/current/stafmigrate.html
"Removed the CONNECTTIMEOUT operational parameter and added an option
named CONNECTTIMEOUT that can be specified when configuring a TCP
interface. "
Example:
"INTERFACE tcp2 LIBRARY STAFTCP OPTION Port=6600 OPTION PROTOCOL=IPv6 \
OPTION ConnectTimeout=15000"
But if you try to set the ConnectTimeout=xxxx on an ssl interface, you get
this:
Error on INTERFACE definition, interface ssl library STAFTCP option
Secure=Yes o
ption Port=6550 ConnectTimeout=30000
Error creating interface, RC: 47, Reason: STAFConnectionProviderConstruct:
PORT
must be a non-negative integer
Error reading config file
Does anyone know if it is possible to change the connect timeout for an
SSL STAF interface connection?
Thanks,
Donnie Cambre
******* CONFIDENTIALITY NOTICE *******
This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended
solely for the use of the addressee. If the reader of this message
is not the intended recipient, you are hereby notified that any
reading, dissemination, distribution, copying, or other use of this
message or its attachments is strictly prohibited. If you have
received this message in error, please notify the sender
immediately and delete this message from your system. Thank you.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users