Author: hiranya
Date: Tue Aug 13 06:06:04 2013
New Revision: 1513361
URL: http://svn.apache.org/r1513361
Log:
Changed the default Server header of the pt transport (to be consistent with
user agent header) - Updated documentation
Modified:
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/transports/pass_through.xml
synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/config/SourceConfiguration.java
Modified:
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/transports/pass_through.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/transports/pass_through.xml?rev=1513361&r1=1513360&r2=1513361&view=diff
==============================================================================
---
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/transports/pass_through.xml
(original)
+++
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/transports/pass_through.xml
Tue Aug 13 06:06:04 2013
@@ -746,7 +746,7 @@
<tr>
<td>http.socket.rcv-buffer-size</td>
<td>
- Set the size of the buffers used by the underlying
platform
+ Set the size of the buffers (in bytes) used by the
underlying platform
for incoming network I/O. This value is only a hint.
When set, this is a
suggestion to the OS kernel from Synapse about the
size of buffers to
use for the data to be received over the socket
@@ -759,7 +759,7 @@
<tr>
<td>http.socket.snd-buffer-size</td>
<td>
- Set the size of the buffers used by the underlying
platform
+ Set the size of the buffers (in bytes) used by the
underlying platform
for outgoing network I/O. This value is only a hint.
When set, this is a
suggestion to the OS kernel from Synapse about the
size of buffers to
use for the data to be sent over the socket
@@ -841,6 +841,42 @@
<td>report</td>
</tr>
<tr>
+ <td>io_buffer_size</td>
+ <td>
+ Set the size of the I/O buffers (in bytes) used as the
pipes between HTTP
+ listener and sender. Typically, the HTTP listener
would write the incoming
+ message data to one of these buffers, and the sender
would read from it to
+ send the message out.
+ <div class="xmlConf">io_buffer_size=10240</div>
+ </td>
+ <td>No</td>
+ <td>8192</td>
+ </tr>
+ <tr>
+ <td>http.user.agent.preserve</td>
+ <td>
+ Specify whether Synapse should preserve the User-Agent
header sent by the
+ client applications, when forwarding messages to
backend servers. Allowed
+ values are either true or false. If set to false,
Synapse will overwrite
+ the original User-Agent header value with the string
'Synapse-PT-HttpComponents-NIO'.
+ <div
class="xmlConf">http.user.agent.preserve=true</div>
+ </td>
+ <td>No</td>
+ <td>false</td>
+ </tr>
+ <tr>
+ <td>http.server.preserve</td>
+ <td>
+ Specify whether Synapse should preserve the Server
header sent by the
+ backend servers, when forwarding messages to client
applications. Allowed
+ values are either true or false. If set to false,
Synapse will overwrite
+ the original Server header value with the string
'Synapse-PT-HttpComponents-NIO'.
+ <div class="xmlConf">http.server.preserve=false</div>
+ </td>
+ <td>No</td>
+ <td>true</td>
+ </tr>
+ <tr>
<td>worker_pool_size_core</td>
<td>
Initial size of the internal thread pool used by the
Pass
Modified:
synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/config/SourceConfiguration.java
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/config/SourceConfiguration.java?rev=1513361&r1=1513360&r2=1513361&view=diff
==============================================================================
---
synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/config/SourceConfiguration.java
(original)
+++
synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/config/SourceConfiguration.java
Tue Aug 13 06:06:04 2013
@@ -124,7 +124,7 @@ public class SourceConfiguration extends
protected HttpProcessor initHttpProcessor() {
return new ImmutableHttpProcessor(
new ResponseDate(),
- new ResponseServer("Synapse-PassThrough-Http"),
+ new ResponseServer("Synapse-PT-HttpComponents-NIO"),
new ResponseContent(),
new ResponseConnControl());
}