[jsword-devel] WebResource default timeout

Chris Burrell christopher at burrell.me.uk
Tue Dec 7 04:55:50 MST 2010


Allright by me! We'll use it on local installations only of our web app
only. Having said that, I'd have preferred to have non static state.

Chris


On 7 December 2010 04:42, Joe Kumar <joekumar at gmail.com> wrote:

> Hi DM,
>
> I am on a broadband too. I hope comcast doesnt think of this as netflix :)
> and slow me down or something.
>
> Anywayz, I can use the static method as well.
> In APIExamples, I have added WebResource.setTimeout(1500) in the
> installBook(). I verified that I dont get the SocketTimeoutException with
> this change.
> Please find the patch attached to this mail.
>
> regards
> Joe.
>
> On Mon, Dec 6, 2010 at 9:21 AM, DM Smith <dmsmith at crosswire.org> wrote:
>
>> 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
>>
>>
>>
>> _______________________________________________
>> 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-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/20101207/4bb9ebe2/attachment-0001.html>


More information about the jsword-devel mailing list