ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQCONNX timeout

Post new topic  Reply to topic
 MQCONNX timeout « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Wed Jun 05, 2013 2:50 am    Post subject: MQCONNX timeout Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Hi.

Is there a way to modify the timeout value for MQCONNX(),
this is, the time we wait before "2538 MQRC_HOST_NOT_AVAILABLE" is returned ?

We are basically using AMQSCNXC.C for our tests.

Thanks for any pointer or URL.

Sebastian.
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Wed Jun 05, 2013 3:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

presumably the timeout is a combination of the client-connection/server-connection details (which can be set using the MQCD you put in the MQCNO) and the TCP/IP config of the client and server.
Back to top
View user's profile Send private message
sebastia
PostPosted: Wed Jun 05, 2013 4:29 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Thanks, Jeff.

MQCD : I shall have a look at
Quote:
MQLONG DiscInterval; // Disconnect interval


... but I have no clue on what TCP/IP param (Linux or Windows) can be involved and/or how to change it ..

Any ideas / documentation is welcome, as googl'ing "TCPIP timeout" is not an easy way to go ...

Sebastian.
Back to top
View user's profile Send private message Visit poster's website
mvic
PostPosted: Wed Jun 05, 2013 2:44 pm    Post subject: Re: MQCONNX timeout Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

sebastia wrote:
Is there a way to modify the timeout value for MQCONNX()

None I know of. If your MQCONNX times out, isn't it OK just to retry the call?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Jun 05, 2013 6:08 pm    Post subject: Re: MQCONNX timeout Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

mvic wrote:
sebastia wrote:
Is there a way to modify the timeout value for MQCONNX()

None I know of. If your MQCONNX times out, isn't it OK just to retry the call?

He wants the timeout to occur faster. He doesn't want to wait multiple seconds for a positive or negative reason code for the MQCONNX call, all the while thinking "Is this MQ API call hung? Is it working? How much longer do I have to wait here before I get an answer one way or the other?"
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
sebastia
PostPosted: Thu Jun 06, 2013 1:19 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Yes, Peter - you are very right.
We have a VERY FAST network, and waiting 3 seconds is an eternity there.
We want to move to next IP in 1/2 second, if possible (or less).
Sebastian.
Back to top
View user's profile Send private message Visit poster's website
PeterPotkay
PostPosted: Thu Jun 06, 2013 4:12 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Do you have SSL involved in your tests?
If you run the test 20 times using amqscnxc does it take the same amount of time to respond each time?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
sebastia
PostPosted: Thu Jun 06, 2013 4:38 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

SSL : no, not using it
timeout : yes, I'd say exactly the same
Back to top
View user's profile Send private message Visit poster's website
PeterPotkay
PostPosted: Thu Jun 06, 2013 6:18 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

http://www-01.ibm.com/support/docview.wss?uid=swg21236534
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
sebastia
PostPosted: Thu Jun 06, 2013 6:21 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

That is a starting point.
I will spend some time folowing the link and the concepts involved.
Thanks, Peter.
Sebastian.
Back to top
View user's profile Send private message Visit poster's website
PaulClarke
PostPosted: Sun Jun 09, 2013 2:35 pm    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

As has already been stated the time it takes for a failed TCP connect is set by OS settings. Usually it is some retry count and a delay. However, you can also tell MQ how long to wait for a TCP connect using the environment variable MQTCPTIMEOUT. If this variable is set then MQ will issue a non-blocking version of connect() and give up waiting for TCP after so many seconds. Don't set the value too low though otherwise you may get false negatives. However, the default TCP settings of around 20 seconds does seem much too long in modern networks

Cheers,
Paul
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Mon Jun 10, 2013 1:08 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

>>> MQTCPTIMEOUT ???

First time I hear about it ...
Will investigate its use, of course ...

Thanks a lot.

Sebastia.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQCONNX timeout
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.