4 Replies Latest reply on Apr 13, 2010 9:56 AM by suxuguang

    What is the default timeout value for http client used by CXF BC provider

    suxuguang

      Hi,

        I set http-conf:client receiveTimeout to 3 hours, but CXF BC provider's HTTPConduit seems to timeout at 30 minutes. I see from the pstack that Sun's http client is used, but I could not find the default timeout value and how to set it.

       

      Could anyone help?

       

      Many Thanks!

      Xuguang

        • 1. Re: What is the default timeout value for http client used by CXF BC provider
          ffang

          Hi,

           

          Could you provide details how you configure receiveTimeout ?

           

          Freeman

          • 2. Re: What is the default timeout value for http client used by CXF BC provider
            suxuguang

            Hi Freeman,

              I added this in the bus config file for the cxf provider:

              <http:client ConnectionTimeout="10800000"  ReceiveTimeout="10800000" />

             

            something like this:

            -


              <http:conduit name="NotificationConsumer.http-conduit">

                <http:tlsClientParameters disableCNCheck="true">

                  <sec:trustManagers>

                      <sec:keyStore type="JKS" password="$"           file="$"/>       </sec:trustManagers>       <sec:keyManagers keyPassword="$">

                      <sec:keyStore type="JKS" password="$"

                      file="$"/>

                  </sec:keyManagers>

                  <sec:cipherSuitesFilter>

                    <!-- these filters ensure that a ciphersuite with

                      Websphere compatibility is used,

                      but exclude anonymous Diffie-Hellman key change as

                      this is vulnerable to man-in-the-middle attacks -->

                    <sec:include>SSL_RSA_WITH_RC4_128_MD5</sec:include>

                    <sec:include>SSL_RSA_WITH_RC4_128_SHA</sec:include>

                    <sec:include>SSL_DHE_DSS_WITH_RC4_128_SHA</sec:include>

                    <sec:include>SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA</sec:include>

                    <sec:include>SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA</sec:include>

                    <sec:include>SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA</sec:include>

                    <sec:include>SSL_RSA_WITH_3DES_EDE_CBC_SHA</sec:include>

                    <sec:include>TLS_DHE_DSS_WITH_AES_128_CBC_SHA</sec:include>

                    <sec:include>TLS_DHE_RSA_WITH_AES_128_CBC_SHA</sec:include>

                    <sec:include>TLS_RSA_WITH_AES_128_CBC_SHA</sec:include>

                    <sec:exclude>.DHanon_.</sec:exclude>

                  </sec:cipherSuitesFilter>

                </http:tlsClientParameters>

                <http:client ConnectionTimeout="10800000"  ReceiveTimeout="10800000" />

              </http:conduit>

            -


             

            Thanks for the help.

            • 3. Re: What is the default timeout value for http client used by CXF BC provider
              ffang

              Hi,

               

              Is NotificationConsumer

              match your cxf bc provider endpoint name?

               

              Could you also append your configuration for cxf bc provider and your wsdl?

               

              Freeman

              • 4. Re: What is the default timeout value for http client used by CXF BC provider
                suxuguang

                Sorry Freeman, It does match my provider information, but I did not read my log correctly, the timeout was indeed 3 hours as I set. The configuration worked as it should.

                 

                Thanks again!