com.TcpRequest.setMaximumResponseLength

Defines the maximum size in Kbyte of the response.

Syntax

setMaximumResponseLength(
   length INTEGER )
  1. length specifies the max size of a response in Kbytes.

Usage

This method sets the maximum authorized size in Kbyte of the whole response, before a break.

A length of -1 defines no limit.

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).