Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-240

If the remote SPARQL Service endpoint does not respond the query hangs, Adding timeout to the Service should fix the problem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ARQ 2.9.0, ARQ 2.9.1
    • ARQ 2.9.1
    • ARQ
    • None

    Description

      When creating the HttpQuery object the com.hp.hpl.jena.sparql.engine.http.Service class does not set any timeout values. HttpQuery will hang if the remote endpoint does not respond.

      I think the solution is to allow the context to specify the timeout values (and perhaps other setter values on HttpQuery). The context should have default values and provide a mechanism to override the defaults based on the URL. Similar to the way query parameters are configured after JENA-195.

      Attachments

        1. patch.txt
          7 kB
          Claude Warren
        2. patch.txt
          10 kB
          Claude Warren
        3. ServiceDocumentation.odt
          14 kB
          Claude Warren
        4. TestService.java
          3 kB
          Claude Warren
        5. TestService.java
          3 kB
          Claude Warren

        Activity

          People

            rvesse Rob Vesse
            claude Claude Warren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified