ONECONNECT::label

Description

Associate OneConnect keying information with connection

Syntax

ONECONNECT::label update <key>

ONECONNECT::label update <key>

  • Associate the provided OneConnect key with the connection. If performed while OneConnect is attached to a server-side connection, this associates both the client-side and server-side with the same key. Once a keyed server-side has been detached, OneConnect will only re-attach it to a client-side connection having the same key (even when ONECONNECT::select is set to none, in which case only unkeyed client-side connections will be attached to the server side)

Examples

when HTTP_REQUEST {
   set keymatch [HTTP::uri]
   persist uie $keymatch
   ONECONNECT::select persist
 }
 when HTTP_REQUEST_SEND {
   if { $keymatch == "/myuri"} {
   ONECONNECT::label update $keymatch
   }
 }