P4G_RAW_CLOSE_CONN

# set
<module-index>/<port-index> P4G_RAW_CLOSE_CONN [<group_index>] <who_close>

# get
<module-index>/<port-index> P4G_RAW_CLOSE_CONN [<group_index>] ?

Description

Specify how to close TCP connection when all payload has been transmitted.

In raw test scenario DOWNLOAD, the server can close the connection, when all payload has been transmitted.

In raw test scenario UPLOAD, the client can close the connection, when all payload has been transmitted. In any case, both server and client CGs must be configured with the same value of this parameter.

In raw test scenario BOTH (bidirectional), this parameter is N/A and will be ignored.

In a transaction scenario, where P4G_RAW_HAS_DOWNLOAD_REQ is set to YES, both client and server can close the connection, when the last transaction has been completed.

When P4G_RAW_CONN_INCARNATION is set to IMMORTAL or REINCARNATE, and this command is set to NONE, connections will be closed after ‘connection lifetime’, set by P4G_RAW_CONN_LIFETIME.

Note

This parameter is N/A when P4G_L4_PROTOCOL is configured as UDP.

Actions

set, get

Parameters

who_close: WhoClose, specifying how to close TCP connection
  • NONE = 0

  • CLIENT = 1

  • SERVER = 2

Example

# set
input:  0/1 P4G_RAW_CLOSE_CONN [0] NONE
output: <OK>

# get
input:  0/1 P4G_RAW_CLOSE_CONN [0] ?
output: 0/1 P4G_RAW_CLOSE_CONN [0] NONE