[jsword-devel] [JIRA] Created: (JS-126) Can we consider increasing the timeout value in WebResource

Martin Denham (JIRA) jira at crosswire.org
Tue Nov 23 15:23:38 MST 2010


Can we consider increasing the timeout value in WebResource
-----------------------------------------------------------

                 Key: JS-126
                 URL: http://www.crosswire.org/bugs/browse/JS-126
             Project: JSword
          Issue Type: Improvement
          Components: o.c.common.util
         Environment: Android mobile
            Reporter: Martin Denham
            Assignee: DM Smith
            Priority: Minor


Can we consider increasing the timeout value at the bottom of o.c.common.util.WebResource.java?  I am using a timeout of 3 seconds in And Bible and it seems to have helped connection reliability.

I suspect the timeout was originally 2 seconds because there is a comment half way down the file (which probably needs correcting) that says:
        // Set a 2 second timeout on getting a connection.
and then the code sets the timeout to 0.75 sec.

Mobile phones have very variable connections and some informal tests seemed to show that increasing the timeout to 3 seconds had a beneficial affect.

Alternatively, another possibility might be to add a static setter:
   public static void setTimeout(int timeout)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.crosswire.org/bugs/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jsword-devel mailing list