[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534665
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-643:
----------------------------------------------

Vadim,
Because both socket factories do not seem to provide the same fail-over logic 
when the connection timeout is set to a non zero value. They merely call the 
ControllerThreadSocketFactory#createSocket method; 
====
    int timeout = params.getConnectionTimeout();

    if (timeout == 0)

    {

      return createSocket(host, port, localAddress, localPort);

    }

    return ControllerThreadSocketFactory.createSocket(

        this, host, port, localAddress, localPort, timeout);

  }

====

I still intend to incorporate the patch into the 4.0 branch in the due course. 
You are very welcome to give me a helping hand, though, if you want this to 
happen sooner ;-)

Oleg 

> Provide fail-over for multi-home remote servers (if one server in a farm goes 
> down)
> -----------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-643
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-643
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 3.1 RC1
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>             Fix For: 4.0 Beta 1
>
>         Attachments: MultiHomeProtocolSocketFactory.java, 
> MultiHomeSSLProtocolSocketFactory.java
>
>
> The HTTP Client does not provide automatic fail-over for multi-home remote 
> servers (web-farm) if one server in a farm goes down

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to