Forum Discussion

M_Petr's avatar
M_Petr
Icon for Altostratus rankAltostratus
Oct 04, 2019
Solved

"ERR_CONNECTION_TIMED_OUT"

Hi, everyone.

Please answer me.

If member of pool is disconnected, the client receives in the web browser "ERR_CONNECTION_TIMED_OUT".

How can I redirect the client to some default page insted this error?

 

Thanks.

  • Hi M.Petr,

    You can redirect, if active member less than 1.

    when HTTP_REQUEST {
        if { [active_members pool_example] < 1 } {
            log local0. "pool_example no have any active members"
            HTTP::redirect "https://www.example.com"
            # or
            # pool pool_404
        }
    }

2 Replies

  • Hi M.Petr,

    You can redirect, if active member less than 1.

    when HTTP_REQUEST {
        if { [active_members pool_example] < 1 } {
            log local0. "pool_example no have any active members"
            HTTP::redirect "https://www.example.com"
            # or
            # pool pool_404
        }
    }