You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Praveen Neppalli Naga (JIRA)" <ji...@apache.org> on 2008/12/05 03:04:46 UTC

[jira] Created: (SHINDIG-765) BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable)

BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable) 
---------------------------------------------------------------------------------------------------------------

                 Key: SHINDIG-765
                 URL: https://issues.apache.org/jira/browse/SHINDIG-765
             Project: Shindig
          Issue Type: Bug
          Components: Gadget Rendering Server (Java)
            Reporter: Praveen Neppalli Naga


Is there any special reason why read timeout is not set and also the connection timeout is hard coded to 5 seconds and not configurable?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-765) BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable)

Posted by "chirag shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

chirag shah updated SHINDIG-765:
--------------------------------

    Attachment: HttpClient3-BasicHttpFetcher.diff

Switched the implementation BasicHttpFetcher to use the apache commons HttpClient3. 

Couple notes:

Should I explicitly declare that commons-httpclient (3.1) as a dependency in the pom.xml? mvn clean install works fine and it doesn't complain about commons-httpclient not being listed as a dependency. 

I've also noticed that HttpClient is used in other places without  commons-httpclient  being declared in the pom.xml. (org/apache/shindig/social/sample/service/SampleContainerHandler.java)

Please feel free to rip it apart!

> BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable) 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-765
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-765
>             Project: Shindig
>          Issue Type: Bug
>          Components: Gadget Rendering Server (Java)
>            Reporter: Praveen Neppalli Naga
>         Attachments: HttpClient3-BasicHttpFetcher.diff, patch-BasicHttpFetcher.txt
>
>
> Is there any special reason why read timeout is not set and also the connection timeout is hard coded to 5 seconds and not configurable?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHINDIG-765) BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable)

Posted by "Vincent Siveton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton resolved SHINDIG-765.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: trunk
         Assignee: Vincent Siveton

Applied Chirag shah's patch in [r761942|http://svn.apache.org/viewvc?rev=761942&view=rev]. Thanks!

> BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable) 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-765
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-765
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>            Reporter: Praveen Neppalli Naga
>            Assignee: Vincent Siveton
>             Fix For: trunk
>
>         Attachments: HttpClient3-BasicHttpFetcher.diff, patch-BasicHttpFetcher.txt
>
>
> Is there any special reason why read timeout is not set and also the connection timeout is hard coded to 5 seconds and not configurable?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-765) BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable)

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653592#action_12653592 ] 

Kevin Brown commented on SHINDIG-765:
-------------------------------------

Yep, because BasicHttpFetcher is a pile o' crap that needs to be replaced. See mail archives and code comments for discussion. I'd be pretty impressed if anyone operating at any reasonable scale is using this out of the box. Patches completely replacing it with something better (say, commons HttpClient) would be more than welcome.

> BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable) 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-765
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-765
>             Project: Shindig
>          Issue Type: Bug
>          Components: Gadget Rendering Server (Java)
>            Reporter: Praveen Neppalli Naga
>         Attachments: patch-BasicHttpFetcher.txt
>
>
> Is there any special reason why read timeout is not set and also the connection timeout is hard coded to 5 seconds and not configurable?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-765) BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable)

Posted by "Praveen Neppalli Naga (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Praveen Neppalli Naga updated SHINDIG-765:
------------------------------------------

    Attachment: patch-BasicHttpFetcher.txt

If there are no special reasons, I have created a patch for this.

> BasiHttpFetcher does not set a read timeout and connection timeout is hardcoded to 5 seconds(not configurable) 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-765
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-765
>             Project: Shindig
>          Issue Type: Bug
>          Components: Gadget Rendering Server (Java)
>            Reporter: Praveen Neppalli Naga
>         Attachments: patch-BasicHttpFetcher.txt
>
>
> Is there any special reason why read timeout is not set and also the connection timeout is hard coded to 5 seconds and not configurable?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.