Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1138

Set query timeout and response buffer length on jetty response listener

    Details

      Description

      Provide the ability to configure the query timeout (client side) and the maximum size of the response buffer for the new jetty client.

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        I have added the following property and related methods on RemoteRepository. These make it possible to change the default jetty http response buffer size (16k) to an application defined value either using

        RemoteRepository.setMaxResponseBufferSize()
        

        or
        {{

        { /** * The name of the system property that may be used to specify the maximum * size (in bytes) for the Jetty response buffer (default @value * \{@value #DEFAULT_MAX_RESPONSE_BUFFER_SIZE}

        )

        • @see <a href="http://trac.bigdata.com/ticket/1092"> Set query timeout and
        • response buffer length on jetty response listener</a>
          */
          static public final String MAX_RESPONSE_BUFFER_SIZE = RemoteRepository.class
          .getName() + ".maxResponseBufferSize";
          }}}

        In addition, the HTTP_HEADER_BIGDATA_MAX_QUERY_MILLIS header that is used to express the query timeout is now also used to limit the time that the jetty client will await a response in the JettyResponseListener

        Commit dc9a869dbae629ffe788edec7bcfbb7430e4d5a6

        Show
        bryanthompson bryanthompson added a comment - I have added the following property and related methods on RemoteRepository. These make it possible to change the default jetty http response buffer size (16k) to an application defined value either using RemoteRepository.setMaxResponseBufferSize() or {{ { /** * The name of the system property that may be used to specify the maximum * size (in bytes) for the Jetty response buffer (default @value * \{@value #DEFAULT_MAX_RESPONSE_BUFFER_SIZE} ) @see <a href="http://trac.bigdata.com/ticket/1092"> Set query timeout and response buffer length on jetty response listener</a> */ static public final String MAX_RESPONSE_BUFFER_SIZE = RemoteRepository.class .getName() + ".maxResponseBufferSize"; }}} In addition, the HTTP_HEADER_BIGDATA_MAX_QUERY_MILLIS header that is used to express the query timeout is now also used to limit the time that the jetty client will await a response in the JettyResponseListener Commit dc9a869dbae629ffe788edec7bcfbb7430e4d5a6
        Hide
        bryanthompson bryanthompson added a comment -

        Per BLZG-1142, I have moved this option to the DefaultHttpClientFactory.Options interface. The DefaultHttpClientFactory is responsible for configuring the HttpClient object and the response buffer size can be set on that HttpClient object.

        Show
        bryanthompson bryanthompson added a comment - Per BLZG-1142 , I have moved this option to the DefaultHttpClientFactory.Options interface. The DefaultHttpClientFactory is responsible for configuring the HttpClient object and the response buffer size can be set on that HttpClient object.

          People

          • Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: