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 Name | Description | Default 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_size | The size of the buffer through which data passes when receiving/transmitting NHTTP requests. This is given in bytes. | 8192 |
http.tcp.nodelay | This 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.stalecheck | This 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 Name | Description | Default Value | |||||
---|---|---|---|---|---|---|---|
http.block_service_list | If 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
| false |
Example
The following example shows excerpts from a nhttp.properties
file.
...