H P, Keshava Bhardwaj | 2 Dec 2008 04:51
Picon
Favicon

RE: setting connection timeout

Hi Roger,

 

I agree.

The HTTP connector implementation uses the same timeout values as the read timeout.

 

It is highly desirable to have different time outs since connect and read timeouts address different problems.

 

Say – a connection should happen within   10 seconds and

A Client can wait for Response  for 5 mins( for some reasons it knows that providers can take large time to process )

 

 

Regards,

Keshava

 

From: Kumpf, Roger
Sent: Monday, December 01, 2008 11:13 PM
To: H P, Keshava Bhardwaj; pegasus-l <at> opengroup.org
Subject: RE: setting connection timeout

 

Keshava,

 

The CIMClient timeout is now used as the connection timeout as well as the response timeout.  See Bug 7181.  This change was made in Pegasus 2.8.0, 2.7.1, 2.6.2, and 2.5.5.

 

-Roger

 

From: H P, Keshava Bhardwaj
Sent: Monday, December 01, 2008 2:34 AM
To: pegasus-l <at> opengroup.org
Subject: setting connection timeout

Hi,                                                             

 

   Is there any way where one can specify the connect timeout  in the client through Pegasus C++ client.

( to timeout if a connection is not established within specified time )

 

The only interface available is

    /**

        Sets the timeout value for CIMClient operations.  If an operation

        response is not received within this timeout value, a

        ConnectionTimeoutException is thrown and the connection is reset.

        The default timeout value is 20 seconds (20000 milliseconds).

        <at> param timeoutMilliseconds An integer specifying the timeout value

        (in milliseconds).

    */

void setTimeout(Uint32 timeoutMilliseconds);

 

and  this is a response timeout.

 

 

Regards,

Keshava

 

 

 


Gmane