From d3a916f25cdc0e9e8b36764fb846e0410fc87262 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Sun, 25 Sep 2011 12:04:11 -0400 Subject: [PATCH] INT-2144 Document Socket Timeout Defaults Add note about timeouts when using collaborating channel adapters. --- docs/src/reference/docbook/ip.xml | 44 ++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/docs/src/reference/docbook/ip.xml b/docs/src/reference/docbook/ip.xml index 35b1dd22af..b661c1259f 100644 --- a/docs/src/reference/docbook/ip.xml +++ b/docs/src/reference/docbook/ip.xml @@ -604,6 +604,34 @@ unless the transformed payload is a String or byte[], + + + + When a client connection factory is used by + collaborating channel + adapters, the so-timeout attribute defaults + to the default reply timeout (10 seconds). This means that if + no data are received by the inbound adapter for this period of + time, the socket will be closed. + + + This may not be appropriate in a truly asynch environment, or + if you expect the server to take more than 10 seconds to respond + in a request/reply environment. + The timeout can be increased by setting the + so-timeout attribute on the connection + factory. + + + It is not currently possible to set this to an infinite value + (0); the maximum value can be set using a SpEL expression as + follows. + + so-timeout="#{T(java.lang.Integer).MAX_VALUE}" + + + +
@@ -716,24 +744,28 @@ Y Y - See java.net.Socket - setSoTimeout() methods for more information. + Defaults to 0 (infinity), except when the connection + factory is used by collaborating adapters, where it + defaults to the default reply timeout (10 seconds). + See the section about collaborating adapters above + and java.net.Socket. setSoTimeout(). + so-send-buffer-size Y Y - See java.net.Socket - setSendBufferSize() methods for more information. + See java.net.Socket. setSendBufferSize(). + so-receive-buffer- size Y Y - See java.net.Socket - setReceiveBufferSize() methods for more information. + See java.net.Socket. setReceiveBufferSize(). + so-keep-alive