Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The <ESB_HOME>/repository/conf/nhttp.properties file contains tuning parameters related to HTTP-NIO Transport. These parameters can be modified as required based on your production environment. This information is provided as a reference for users who are already familiar with the product features and want to know how to configure them.

...

Parameter NameDescriptionDefault Value
http.socket.timeout

Maximum period of inactivity between two consecutive data packets. Given in milliseconds. This parameter is also defined as SO_TIMEOUT.

60000
http.socket.timeout.receiver

Maximum period of inactivity between two consecutive data packets for the transport listener side. This is the socket timeout value for connection between the client and the ESB server. The value is given in milliseconds.

60000
http.socket.timeout.sender
Maximum period of inactivity between two consecutive data packets for the transport sender side. This is the socket timeout value for connection between the ESB server and the backend server. The value is given in milliseconds.60000
nhttp_buffer_sizeThe size of the buffer through which data passes when receiving/transmitting NHTTP requests. This is given in bytes.8192
http.tcp.nodelayThis determines whether Nagle's algorithm (for improving the efficiency of TCP/IP by reducing the number of packets sent over the network) is used. Value 0 is used to enable this algorithm and value 1 is used to disable it. The algorithm should be enabled if you need to reduce bandwidth consumption.1
http.connection.stalecheckThis determines whether stale connection check is used. Value 0 is used to enable stale connection check and value 1 is used to disable it. When this parameter is enabled, connections which are no longer used will be identified and disabled before each request execution. Stale connection check should be disabled when performing critical operations.0

...

Parameter NameDescriptionDefault Value
http.block_service_listIf this parameter is set to true, all the services deployed to the WSO2 ESB cannot be viewed from the http(s):<esb>:8280/services/ URL.false
http.user.agent.preserve

If this parameter is set to true,the User-Agent HTTP header of messages passing through the ESB will be preserved.

Excerpt
hiddentrue

This is added for FAQ "How can I preserve User-Agent HTTP header when passing messages through ESB?".

false

Example

The following example shows excerpts from a nhttp.properties file.

...