Change default timeout on Message Gateway client

This article describes how to change the default timeout on Message Gateway client, if needed.

The reader should have some basic knowledge about PhenixID Server.

Overview

The default timeout for the Message Gateway client is four (4) seconds.

If this value needs to be changed, please follow the instructions in this document.

We will make changes to the files:

/bin/start-PhenixID.sh (Linux)

/bin/*.vmoptions (Windows)

So please make sure to have a recent copy of these files before making the changes below.

Instruction

The parameters used to set the timeout is:
msggw.connection.timeout (the time to establish the connection with the remote host)
msggw.socket.timeout (the time waiting for data, after the connection was established)

On Linux these parameters are set in the file /bin/start-PhenixID.sh, change them like this (increase to 8 seconds):

JAVA_OPTS="${JAVA_OPTS} -Dmsggw.connection.timeout=8"

JAVA_OPTS="${JAVA_OPTS} -Dmsggw.socket.timeout=8"

On Windows these parameters are set in the file/files /bin/*.vmoptions, change them like this (increase to 8 seconds):

-Dmsggw.connection.timeout=8

-Dmsggw.socket.timeout=8

PhenixID service needs to be restarted for the change to take affect.