[jsword-devel] WebResource default timeout

DM Smith dmsmith at crosswire.org
Mon Dec 6 07:21:13 MST 2010


Joe,
In WebResource, there is a static method to change the default timeout. Is this sufficient? Or should the default be changed?

I have broadband and have never experienced a timeout that wasn't substantially longer (i.e. the connection was out to lunch altogether), but those with dialup might have a different experience. Those on mobile devices do. Martin is using this mechanism for and-Bible.

I was thinking that APIExamples would be changed to call the WebResource.setTimeout(1500).

In Him,
	DM

On Dec 5, 2010, at 11:37 PM, Joe Kumar wrote:

> Thanks Smith.
> I increased the timeout in WebResource.java. I am attaching the patch in this mail. 
> Should I open a jira issue and upload the patch there ? I couldnt find any info about this in the site. Please advise.
> 
> regards
> Joe.
> 
> On Sun, Dec 5, 2010 at 11:08 PM, DM Smith <dmsmith at crosswire.org> wrote:
> Welcome Joe,
> This was just reported a few days ago, elsewhere in the code, and we added the ability to increase the timeout. That code is in trunk. I hadn't thought to extend it elsewhere. If you'd work up a patch for APIExamples.java, that would be great!
> In Him,
> 	DM
> 
> On Dec 5, 2010, at 10:59 PM, Joe Kumar wrote:
> 
>> Hi JSword team,
>> 
>> This is Joe. I was wanting to develop a system that could match prayer requests with bible verses. I started off using lucene to create indexes on a bible that I downloaded off the internet but after searching a little bit I realized that JSword uses lucene. So I am planning to use the data structures and functionalities provided by JSword and build something on top of it. Tatz a little bit of background.
>> I downloaded the code from instructions in http://www.crosswire.org/jsword/svn.html. 
>> 
>> When I run the APIExamples.java, I encountered a "java.net.SocketTimeoutException: Read timed out". After increasing the default timeout from 750 to 1500, it works fine. I am using Eclipse 3.5 on OSX Snow Leopard. Not sure if anyone else face this issue. If so I can submit a small patch for this.
>> 
>> regards
>> Joe.
>> 
>> 
>> 
>> 
>> _______________________________________________
>> jsword-devel mailing list
>> jsword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/jsword-devel
> 
> 
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
> 
> 
> 
> 
> -- 
> God doesnot ask us of our ability but our availability
> http://joekumar.net
> <jsword_webresource_timeout.patch>_______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20101206/fed9e539/attachment-0001.html>


More information about the jsword-devel mailing list