Forum Discussion

trx's avatar
Jan 20, 2011

CLIENT_ACCEPTED question

Hello Community,

At what point in the established connection be disconnected? Is there a way to manually (code base) way un-establish the connection from it?

 

 

 

Thanks.

 

 

 

Regards,

 

TRX

 

  • Hi Trx,

     

    Here is an explination on TCP Connections disconnecting Click Here. As for code base you can find the command reject in the wiki section Click Here

     

     

    I hope this helps

     

    Bhattman
  • Also does establish connection still alive if you go from an http Virtual Server and https Virtual Server using the same pool?

     

     

    ex)

     

     

     

    ....... HTTP Virtual Server IRules:

     

     

     

    when CLIENT_ACCEPTED {

     

    set ::Flag 0

     

    }

     

     

     

     

     

     

     

     

     

    when HTTP_REQUEST {

     

    if { ([string tolower [HTTP::uri]] contains "https") } {

     

    Route traffic over SSL when accessing secure static files

     

    HTTP::respond 301 Location https://[HTTP::host][HTTP::uri]

     

    return

     

     

    } else {

     

    Do nothing and remain on http

     

    return

     

    }

     

    }

     

     

     

     

    ...... Now the traffic goes to the IRules on the SSL Virtual Server

     

     

     

    The question is the establish connection still alive and can we access the "Flag" variable created when the established connection was completed on the http VS?

     

     

     

    Thanks.

     

     

     

    Regards,

     

    TRX