beautypg.com

Os _slb:: reset_client, Input parameters, Return values – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 112: Example, Description, Context, Usage

background image

100

Brocade Virtual ADX OpenScript API Guide

53-1003243-01

Methods

7

Input Parameters

The following table contains the input values.

Return Values

None

Example

OS _SLB:: reset_client

Description

Causes the system to reset a TCP connection.

Context

This function can be called from an HTTP request event or TCP client events.

Usage

Can be used to reset client connection instead of load balancing traffic.

Input Parameters

None.

Return Values

None.

TABLE 122

Input Values

Name

Type

Description

$data

string

The error page you want to send
(optional)

string

The default string sent if one is
not specified by $data. I

use OS_SLB;

use OS_HTTP_REQUEST;

sub HTTP_REQUEST{

OS_SLB::reply("HTTP/1.1 403 Forbidden\r\nServer: HTTP Proxy/1.0\r\nConnection:

Close\r\nContent-Length: 0\r\n\r\n"");

}