Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 19520 invoked from network); 1 Feb 2011 13:07:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 13:07:39 -0000 Received: (qmail 98184 invoked by uid 500); 1 Feb 2011 13:07:39 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 97995 invoked by uid 500); 1 Feb 2011 13:07:36 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 97987 invoked by uid 99); 1 Feb 2011 13:07:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 13:07:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cbartlett.x@gmail.com designates 209.85.215.54 as permitted sender) Received: from [209.85.215.54] (HELO mail-ew0-f54.google.com) (209.85.215.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 13:07:29 +0000 Received: by ewy24 with SMTP id 24so3174158ewy.13 for ; Tue, 01 Feb 2011 05:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=is/2tQtrhYU23KxObCYzJJqOw9R2SGKvqCrQH6aC2NQ=; b=TmRxbfMepgEqAzzan2Zceyt7qW+gP+OMZBbtJ00R5+vvvfN8ugBcl7hGOqXhcZ6CcQ Bb/VjcG1G+m7dVel1isnJyeVPwLjj3QPo0l+Y3dhq94B4B21PypwbqkPx9TKpJKOv6OK wkcODKn7vENx1UZ0gNFCMPVV82tgJiUfMQPJI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AiTLUH/rz5c2KpT+ZTughV1wN7HBzBNopf7ouU4Pdz0hGWc7hxoKZ0kVn/PnDefwmZ 7o+0JDyJ7cfMX1K/hUR2r4/7N/w8lnkjkuRdLn7rRSjZLFFYEYWKuz54bfN0eF3rCFiM puuslkeEBC+Mbq2g4iHEbohVsx/JhdlVLBbFE= MIME-Version: 1.0 Received: by 10.14.37.138 with SMTP id y10mr2307785eea.43.1296565627411; Tue, 01 Feb 2011 05:07:07 -0800 (PST) Received: by 10.14.45.76 with HTTP; Tue, 1 Feb 2011 05:07:07 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Feb 2011 20:07:07 +0700 Message-ID: Subject: Re: GetQuery doesn't return over sleep (MacOS) From: Chris Bartlett To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=90e6ba615080a65ef6049b383530 --90e6ba615080a65ef6049b383530 Content-Type: text/plain; charset=ISO-8859-1 Bill, I think we will need some more input from you in order to investigate this. Could you please create a JIRA ticket, preferably with a minimal example application attached and the steps to reproduce the behaviour? https://issues.apache.org/jira/browse/PIVOT I haven't used the org.apache.pivot.web package myself, but it looks like wrappers for java.net.URL & java.net.HttpURLConnection. If you take Pivot out of the picture and use those directly, do you still see the issue? Chris On 1 February 2011 08:31, Bill van Melle wrote: > I'm having an issue where I call GetQuery.execute, but neither > the taskExecuted nor the executeFailed methods of my TaskListener are being > called. Should this ever happen? It happens for me if the Mac sleeps while > the call is in progress. There is also some other condition that does it > that I haven't quite been able to nail down. > > (More info: the GetQuery is a "long poll" to a server that doesn't return > until new information is available (or a timeout passes). When the call > returns, my program processes the result, and issues another query. > Naturally, if the call never returns, the program stops updating -- not > good. I'd hate to have to add logic that detects this condition and > restarts the long poll cycle.) > > > > --90e6ba615080a65ef6049b383530 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Bill,

I think we will need some more inpu= t from you in order to investigate this.

Could you= please create a JIRA ticket, preferably with a minimal example application= attached and the steps to reproduce the behaviour?=A0

I haven't us= ed the org.apache.pivot.web package myself, but it looks like wrappers for = java.net.URL & java.net.HttpURLConnection. =A0If you take Pivot out of = the picture and use those directly, do you still see the issue?

Chris

On 1 February 2011 08:31, Bill van Melle <bill.van.melle@gmail.com> w= rote:
I'm having an issue where I call=A0GetQ= uery.execute, but neither the=A0taskExecuted nor the=A0executeFailed method= s of my=A0TaskListener are being called. =A0Should this ever happen? =A0It = happens for me=A0if the Mac sleeps while the call is in progress. =A0There = is also some other condition that does it that I haven't quite been abl= e to nail down.

(More info: the=A0GetQuery=A0is a "long poll" to a= server that doesn't return until new information is available (or a ti= meout passes). =A0When the call returns, my program processes the result, a= nd issues another query. =A0Naturally, if the call never returns, the progr= am stops updating -- not good. =A0I'd hate to have to add logic that de= tects this condition and restarts the long poll cycle.)




--90e6ba615080a65ef6049b383530--