You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Vadim Permakoff (JIRA)" <ji...@apache.org> on 2007/04/02 16:43:32 UTC

[jira] Created: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

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.0 Final
         Environment: All environments
            Reporter: Vadim Permakoff
            Priority: Minor


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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486076 ] 

Roland Weber commented on HTTPCLIENT-643:
-----------------------------------------

Looks like a case for proper. The error handling and Java version support needs a bit of polishing though.

cheers,
  Roland


> 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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494679 ] 

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

Folks,

This patch is not ready for inclusion into the stable distribution without additional work. I have no cycles left to work on anything but major bugs in the HttpClient 3.x code line. I suggest we postpone this issue until 4.0

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: 3.1 Final
>
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Issue Comment Edited: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Vadim Permakoff (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536212 ] 

vadim62 edited comment on HTTPCLIENT-643 at 10/19/07 5:43 PM:
----------------------------------------------------------------------

I see. This is what I did not mention: I registered http protocol with MultiHomeProtocolSocketFactory and https with MultiHomeSSLProtocolSocketFactory.

  // register custom http and https protocols
  static
  {
    Protocol protocolHttp = new Protocol("http",
                                     (ProtocolSocketFactory)new MultiHomeProtocolSocketFactory(),
                                     DEFAULT_HTTP_PORT);
    Protocol.registerProtocol("http", protocolHttp);
    Protocol protocolHttps = new Protocol("https",
                            (ProtocolSocketFactory)new MultiHomeSSLProtocolSocketFactory(),
                            DEFAULT_HTTPS_PORT);
    Protocol.registerProtocol("https", protocolHttps);
  }

I did not need to change any code in HTTP Client (which I like a lot, nice architecture!), just created these 2 Factories and registered in my other class. In this case the MultiHomeProtocolSocketFactory.createSocket() will be called from ControllerThreadSocketFactory.createSocket().


      was (Author: vadim62):
    I see. This is what I did not mention: I registered http protocol with MultiHomeProtocolSocketFactory and https with MultiHomeSSLProtocolSocketFactory.

  // register custom http and https protocols
  static
  {
    Protocol protocolHttp = new Protocol("http",
                                     (ProtocolSocketFactory)new MultiHomeProtocolSocketFactory(),
                                     DEFAULT_HTTP_PORT);
    Protocol.registerProtocol("http", protocolHttp);
    Protocol protocolHttps = new Protocol("https",
                            (ProtocolSocketFactory)new MultiHomeSSLProtocolSocketFactory(),
                            DEFAULT_HTTPS_PORT);
    Protocol.registerProtocol("https", protocolHttps);
  }

I did not need to change any code in HTTP Client (which I like a lot, nice architecture!), just created these 2 Factories and registered in my other class.

  
> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Issue Comment Edited: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Vadim Permakoff (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536212 ] 

vadim62 edited comment on HTTPCLIENT-643 at 10/30/07 11:27 AM:
-----------------------------------------------------------------------

I see. This is what I did not mention: I registered http protocol with MultiHomeProtocolSocketFactory and https with MultiHomeSSLProtocolSocketFactory.

  // register custom http and https protocols
  static
  {
    Protocol protocolHttp = new Protocol("http",
                                     (ProtocolSocketFactory)new MultiHomeProtocolSocketFactory(),
                                     DEFAULT_HTTP_PORT);
    Protocol.registerProtocol("http", protocolHttp);
    Protocol protocolHttps = new Protocol("https",
                            (ProtocolSocketFactory)new MultiHomeSSLProtocolSocketFactory(),
                            DEFAULT_HTTPS_PORT);
    Protocol.registerProtocol("https", protocolHttps);
  }

I did not need to change any code in HTTP Client (which I like a lot, nice architecture!), just created these 2 Factories and registered in my other class. In this case the MultiHomeProtocolSocketFactory#createSocket will be called from ControllerThreadSocketFactory#createSocket.


      was (Author: vadim62):
    I see. This is what I did not mention: I registered http protocol with MultiHomeProtocolSocketFactory and https with MultiHomeSSLProtocolSocketFactory.

  // register custom http and https protocols
  static
  {
    Protocol protocolHttp = new Protocol("http",
                                     (ProtocolSocketFactory)new MultiHomeProtocolSocketFactory(),
                                     DEFAULT_HTTP_PORT);
    Protocol.registerProtocol("http", protocolHttp);
    Protocol protocolHttps = new Protocol("https",
                            (ProtocolSocketFactory)new MultiHomeSSLProtocolSocketFactory(),
                            DEFAULT_HTTPS_PORT);
    Protocol.registerProtocol("https", protocolHttps);
  }

I did not need to change any code in HTTP Client (which I like a lot, nice architecture!), just created these 2 Factories and registered in my other class. In this case the MultiHomeProtocolSocketFactory.createSocket() will be called from ControllerThreadSocketFactory.createSocket().

  
> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Vadim Permakoff (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534641 ] 

Vadim Permakoff commented on HTTPCLIENT-643:
--------------------------------------------

Hi Oleg,
Sorry, I did not look in this thread for a long time and now my reply is probably too late, but anyway, I hope it may be useful. 
I put here the code just as an example, how the problem was resolved in our case. I don't pretend it to go to any version unchanged and I did not test this code with all possible scenarios, but actually it works fine for me if the connect timeout is set to a non-zero value. I'm not sure why it does not work in your case, can you please provide a bit more info?


> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

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

Oleg Kalnichevski updated HTTPCLIENT-643:
-----------------------------------------

        Fix Version/s: 3.1 Final
    Affects Version/s:     (was: 3.0 Final)
                       3.1 RC1

Very well, 3.1 it is.

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: 3.1 Final
>
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486084 ] 

Roland Weber commented on HTTPCLIENT-643:
-----------------------------------------

I can live with putting this into 3.1. It does not affect either binary or source compatibility. And it makes sense.
We should not let users wait for this code for several releases just to stick to the RC definition.

But if you don't like the idea, I have no problem with putting it into 3.1 contrib and 4.0 proper either.

cheers,
  Roland


> 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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Vadim Permakoff (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538880 ] 

Vadim Permakoff commented on HTTPCLIENT-643:
--------------------------------------------

Oleg,
Any problems using it as I described above? 
Regards, 
Vadim

> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

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

Oleg Kalnichevski updated HTTPCLIENT-643:
-----------------------------------------

    Fix Version/s:     (was: 3.1 Final)
                   4.0 Beta 1

> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490836 ] 

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

Vadim,

I took a closer look at the code and found out that both factories would not work as advertised (no fail-over for multi-home remote servers) if the connect timeout was set to a non-zero value. This needs to be fixed if you want the code to be accepted into the main distribution of HttpClient.

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: 3.1 Final
>
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

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

Oleg Kalnichevski updated HTTPCLIENT-643:
-----------------------------------------

    Fix Version/s:     (was: 4.0 Beta 1)
                   4.0 Alpha 3

> 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 Alpha 3
>
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

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

Vadim Permakoff updated HTTPCLIENT-643:
---------------------------------------

    Attachment: MultiHomeProtocolSocketFactory.java

Attached is example of code: MultiHomeProtocolSocketFactory.java and MultiHomeSSLProtocolSocketFactory.java to resolve this issue

> 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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Ortwin Glück (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486061 ] 

Ortwin Glück commented on HTTPCLIENT-643:
-----------------------------------------

Should definitely go into proper. It's a common use case.

> 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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486078 ] 

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

Another question to follow immediately: what target release? 3.1, 3.2 or 4.0? Since 3.1-rc1 has already been officially released 3.1 is supposed to be in the state of code freeze by now barring serious bugs only. 

Thoughts?

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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Ortwin Glück (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486081 ] 

Ortwin Glück commented on HTTPCLIENT-643:
-----------------------------------------

We can certainly bundle it as an addition in 3.1, if it is not set as the default.

> 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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486039 ] 

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

Folks,

This looks useful to me. The questions is whether we want to put this code to the 'contrib' package or to HttpClient proper. 

What do you think?

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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538883 ] 

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

No, no problem, but as far as I understand this only works when the factory is registered as the default one.   

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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

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

Vadim Permakoff updated HTTPCLIENT-643:
---------------------------------------

    Attachment: MultiHomeSSLProtocolSocketFactory.java

Attached is example of code: MultiHomeProtocolSocketFactory.java and MultiHomeSSLProtocolSocketFactory.java to resolve this issue

> 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.0 Final
>         Environment: All environments
>            Reporter: Vadim Permakoff
>            Priority: Minor
>         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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-643) Provide fail-over for multi-home remote servers (if one server in a farm goes down)

Posted by "Vadim Permakoff (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536212 ] 

Vadim Permakoff commented on HTTPCLIENT-643:
--------------------------------------------

I see. This is what I did not mention: I registered http protocol with MultiHomeProtocolSocketFactory and https with MultiHomeSSLProtocolSocketFactory.

  // register custom http and https protocols
  static
  {
    Protocol protocolHttp = new Protocol("http",
                                     (ProtocolSocketFactory)new MultiHomeProtocolSocketFactory(),
                                     DEFAULT_HTTP_PORT);
    Protocol.registerProtocol("http", protocolHttp);
    Protocol protocolHttps = new Protocol("https",
                            (ProtocolSocketFactory)new MultiHomeSSLProtocolSocketFactory(),
                            DEFAULT_HTTPS_PORT);
    Protocol.registerProtocol("https", protocolHttps);
  }

I did not need to change any code in HTTP Client (which I like a lot, nice architecture!), just created these 2 Factories and registered in my other class.


> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org