Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEC4499E8 for ; Fri, 4 May 2012 13:01:11 +0000 (UTC) Received: (qmail 94348 invoked by uid 500); 4 May 2012 13:01:11 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 94314 invoked by uid 500); 4 May 2012 13:01:11 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 94305 invoked by uid 99); 4 May 2012 13:01:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 13:01:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 13:01:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8FE71430B3D for ; Fri, 4 May 2012 13:00:48 +0000 (UTC) Date: Fri, 4 May 2012 13:00:48 +0000 (UTC) From: "Andy Seaborne (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <1962900826.26742.1336136448591.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1843214104.17081.1335965694526.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (JENA-240) If the remote SPARQL Service endpoint does not respond the query hangs, Adding timeout to the Service should fix the problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JENA-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268308#comment-13268308 ] Andy Seaborne edited comment on JENA-240 at 5/4/12 12:59 PM: ------------------------------------------------------------- Claude - TestService does not have assignment flag set. Could you please re-attach with the flag set? Thanks. was (Author: andy.seaborne): Clause - TestService does not have assignment flag set. Could you please re-attach with the flag set? Thanks. > If the remote SPARQL Service endpoint does not respond the query hangs, Adding timeout to the Service should fix the problem > ---------------------------------------------------------------------------------------------------------------------------- > > Key: JENA-240 > URL: https://issues.apache.org/jira/browse/JENA-240 > Project: Apache Jena > Issue Type: Improvement > Components: ARQ > Affects Versions: ARQ 2.9.0, ARQ 2.9.1 > Reporter: Claude Warren > Assignee: Rob Vesse > Fix For: ARQ 2.9.1 > > Attachments: TestService.java, patch.txt, patch.txt > > Original Estimate: 24h > Remaining Estimate: 24h > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira