Bill, Good to hear that you found a workaround so quickly.
Adding configurable timeouts to relevant org.apache.pivot.web & org.apache.pivot.web.server classes sounds like a valid feature request. Chris On 2 February 2011 05:57, Bill van Melle <[email protected]> wrote: > I was able to reproduce the issue using very simple calls via java.net.URL. > And it's not specific to sleeping. Unplugging your network cable does the > same thing. > > As best I can tell, the problem is that the connection timeout on the Mac > is infinite, whereas on Windows it's a reasonable finite number (maybe 2 > minutes)? So in my test case with java.net.URL, I can avoid the issue by > setting the connection timeout: > > URL url = new URL(...); > HttpURLConnection conn = (HttpURLConnection) url.openConnection(); > conn.setConnectTimeout(timeoutMs); > conn.setReadTimeout(timeoutMs); > conn.connect(); > . . . > > I don't see how I can do this with GetQuery. There is a setTimeout method > in Task, but it's not exactly the same notion ("The time by which the task > must complete execution"), and GetQuery doesn't seem to pay attention to it > anyway ("It is the responsibility of the implementing class to respect this > value.") >
