Note that there are some explanatory texts on larger screens.

plurals
  1. POTcp connection pool is not working after 1 minute
    primarykey
    data
    text
    <p>I have SOAP service, which used tcp connections for interaction with external service. I'm use connection pool for this tcp service. When I start my app and send first SOAP request - all works fine, but if I'm wait 1 min - then I don't get the response. But when I sniff traffic with Wireshark - I see, what response is returned. And small additional - if I'm no wait 1 minute and send new requests - all works fine. Problem occurs only if the wait 1 minute. This my configuration for pool and tcp:</p> <pre><code>&lt;beans profile="single"&gt; &lt;bean id="testConnectionFactory" class="com.test.provider.impl.ProviderTcpConnectionFactory"&gt; &lt;constructor-arg name="host" value="localhost"/&gt; &lt;constructor-arg name="port" value="7700"/&gt; &lt;property name="connectionTimeout" value="10000"/&gt; &lt;property name="soTimeout" value="60000"/&gt; &lt;property name="deserializer" ref="testDeserializer"/&gt; &lt;property name="singleUse" value="true"/&gt; &lt;/bean&gt; &lt;/beans&gt; &lt;beans profile="pool"&gt; &lt;bean id="testConnection" class="com.test.provider.impl.ProviderTcpConnectionFactory"&gt; &lt;constructor-arg name="host" value="localhost"/&gt; &lt;constructor-arg name="port" value="7700"/&gt; &lt;property name="connectionTimeout" value="10000"/&gt; &lt;property name="soTimeout" value="60000"/&gt; &lt;property name="deserializer" ref="testDeserializer"/&gt; &lt;property name="singleUse" value="true"/&gt; &lt;/bean&gt; &lt;bean id="testConnectionFactory" class="org.springframework.integration.ip.tcp.connection.CachingClientConnectionFactory"&gt; &lt;constructor-arg ref="testConnection"/&gt; &lt;constructor-arg value="5"/&gt; &lt;/bean&gt; &lt;/beans&gt; </code></pre> <p>In logs I see next line</p> <pre><code>DEBUG [org.springframework.integration.ip.tcp.connection.TcpNetConnection] Closed single use socket after timeout </code></pre> <p>As I understand - socket closed after soTimeout is expired. But how to use pool without closing connections?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload