>>>>>>>>>>>>>>>>>>>>>>
I
tried the sample using the following:
set
MQSERVER=SYSTEM.ADMIN.SVRCONN/TCP/targetnode
amqsgetc KEN.QL targetqmgr
and
the timeouts are as shown below.
<<<<<<<<<<<<<<<<<<<<<<
-----Original Message-----
From: MQSeries List [mailto:[EMAIL PROTECTED]On Behalf Of Rick Tsujimoto
Sent: Friday, October 08, 2004 12:07
To: [EMAIL PROTECTED]
Subject: Fw: Change Timeout for MQCONN
ooops. sent original reply to Ken instead of the list.
----- Forwarded by Richard Tsujimoto/Consultant-NewYork/CanonUSA on 10/08/2004 02:05 PM -----
Richard Tsujimoto/Consultant-NewYork/CanonUSA 10/08/2004 01:58 PM
To[EMAIL PROTECTED] cc SubjectRe: Change Timeout for MQCONNLink
If you take the sample program amqsget and specify a non-existent QMGR name, the program ends immediately with a 2058 reason code. I don't think that TCP/IP setting has any effect on Paul's problem.
Ken Woloschuk <[EMAIL PROTECTED]>
Sent by: MQSeries List <[EMAIL PROTECTED]>10/08/2004 01:47 PM
Please respond to
[EMAIL PROTECTED]
To[EMAIL PROTECTED] cc SubjectRe: Change Timeout for MQCONN
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
For WXP or W2K look at the following registry entries:
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
TcpMaxConnectRetransmissions
and
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\interface
-name
TcpInitialRTT
For example, by setting TcpMaxConnectRetransmissions to 1 the connect should
time
out in about 10 seconds. Setting it to zero, the connect should time out in
about
5 seconds. You'll need to reboot the windows box when you change these
parameters.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-----Original Message-----
From: MQSeries List [mailto:[EMAIL PROTECTED] Behalf Of Meekin,
Paul
Sent: Friday, October 08, 2004 07:39
To: [EMAIL PROTECTED]
Subject: Change Timeout for MQCONN
Hi all,
I've got a Perl program which is trying to connect to a queue manager. If
the QMgr is not active (or doesn't exist) the MQCONN seems to wait about 20
seconds before timing out - or maybe under the covers it's retrying. I'd
like to reduce this timeout if possible.
I thought about using the setsockopt() function as one of the options is
SO_RCVTIMEO but unfortunately I need access to the actual socket structure
which of course is buried in the MQ code.
Anyone know of how I might achieve this? It's on Windows if that matters
although I could probably run it on Unix if it makes a difference.
Cheers,
Paul
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive