Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 73790 invoked from network); 1 Feb 2011 19:49:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 19:49:54 -0000 Received: (qmail 15274 invoked by uid 500); 1 Feb 2011 19:49:54 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 15199 invoked by uid 500); 1 Feb 2011 19:49:53 -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 15191 invoked by uid 99); 1 Feb 2011 19:49:53 -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 19:49:53 +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 19:49:48 +0000 Received: by ewy24 with SMTP id 24so3533778ewy.13 for ; Tue, 01 Feb 2011 11:49:27 -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=L3fTC+VgFU4HAvqLxoPZGOxnmoANRENDOeAMjWiTt1E=; b=F/ee1FRX9glOT2wYJuPZr+qJJ73fSKyo1GDcgi8TRN1Ki7imcnc9//M6R2Ue2T8ae9 suCB36aOkH1ipiqyD0uJ9FgVCna4duj+gfoWCnPHDWfHUJMRJq2vgS0Sfm3xVoWWVnK4 Oct4u5pXMhuLZnOR2pNYOPTTGyfP+Ty33o/JU= 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=FYbeIvxogVKu6h1F83Nq7GZuo1YEp9XZeuj7MOGyaB/lP/NlIesmxXh+GNSw87uTwP Bgy20m4rBqLIr4/if26DW47j4njYsvEJOv0dzxvhFp6dnP5khMJLxq7lkXcNgIsNNtcx aos7OlaxBF7MG9+3ZQxTl+WIFKs8g6//X5GT4= MIME-Version: 1.0 Received: by 10.14.11.154 with SMTP id 26mr8801854eex.0.1296589764885; Tue, 01 Feb 2011 11:49:24 -0800 (PST) Received: by 10.14.45.76 with HTTP; Tue, 1 Feb 2011 11:49:24 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Feb 2011 02:49:24 +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=0016364995fd5b06cb049b3dd495 --0016364995fd5b06cb049b3dd495 Content-Type: text/plain; charset=ISO-8859-1 Bill, Yeah, I was also wondering the best way to deal with that side of things. Can you reproduce the issue on any public accessible webservices? If not, a Tomcat servlet should suffice. Perhaps it would be simpler if first you could try to see if a non-Pivot version fails in the same way? If it doesn't then it suggests that the problem is in the Pivot codebase and not just to do with Java's (or the OS's) handling of power states. I was thinking of something along the lines of making the connection to your existing web service, putting your Mac into a sleep state, waking it up and checking the connection again. Creating an example for JIRA may involve more effort. I would like to be able to rule out (or in) a few things one way or another. Things like - does this just occur with Pivots web classes or with the underlying Java ones too - is the problem on the client side or the server side (or in the middle if a proxy is used) - does the duration of the sleep matter and does it also occur with hibernation (Do Macs hibernate?) As I mentioned, I am not familiar with the org.apache.pivot.web package, or these java.net methods for that matter! So don't hesitate to point out if I am suggesting something stupid or that would take a great deal of effort on your part :) Chris On 2 February 2011 02:21, Bill van Melle wrote: > Okay, I'll run some experiments and get back to you. Of course, making a > reproducible example requires a long-poll-style web service somewhere. I > could make a trivial Tomcat servlet, or a standalone Python server, or > something like that to include. What's suitable? --0016364995fd5b06cb049b3dd495 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Bill,

Yeah, I was also wondering the best way= to deal with that side of things. =A0Can you reproduce the issue on any pu= blic accessible webservices? =A0If not, a Tomcat servlet should suffice.

Perhaps it would be simpler if first you could tr= y to see if a non-Pivot version fails in the same way? =A0If it doesn't= then it suggests that the problem is in the Pivot codebase and not just to= do with Java's (or the OS's) handling of power states. =A0I was th= inking of something along the lines of making the connection to your existi= ng web service, putting your Mac into a sleep state, waking it up and check= ing the connection again. =A0Creating an example for JIRA may involve more = effort.

I would like to be able to rule out (or in) a few thing= s one way or another. =A0
Things like
- does this just = occur with Pivots web classes or with the underlying Java ones too
- is the problem on the client side or the server side (or in the middle if= a proxy is used)
- does the duration of the sleep matter and doe= s it also occur with hibernation (Do Macs hibernate?)

As I mentioned, I am not familiar with the org.apache.pivot.web packag= e, or these java.net methods for that matte= r! =A0So don't hesitate to point out if I am suggesting something stupi= d or that would take a great deal of effort on your part =A0 :)

Chris

On= 2 February 2011 02:21, Bill van Melle <bill.van.melle@gmail.com> wrote= :
Okay, I'll run some experiments and get= back to you. =A0Of course, making a reproducible example requires a long-p= oll-style web service somewhere. =A0I could make a trivial Tomcat servlet, = or a standalone Python server, or something like that to include. =A0What&#= 39;s suitable?

--0016364995fd5b06cb049b3dd495--