167 Commits

Author SHA1 Message Date
Gary Russell
b10aec3ae8 INT-2519 Fix Failing Test
Depending on timing, it was possible the event the test
case was waiting for would never happen. With no timeout
the selector will block until the next IO event occurs,
and there is none in this test.

Adding a call to factory.close() forces a wakeup of
the selector, which will force the harvest to occur.

This is a test-only problem.
2012-05-08 15:01:55 -04:00
Gary Russell
a57a9e56e6 INT-2519 Fix Memory Leak 2.0.x Backport
When using NIO, a Map of connections is maintained (keyed
by the SocketChannel) and used to manage registrations
for NIO events, timeouts etc.

When a connection is closed, the corresponding entry
should be removed from the map. The code to do this
is in AbstractConnectionFactory.processNioSelections().
However, if no socket timeout (soTimeout) has been set,
or it was explicitly set to 0, connections are not
removed from the map. This was because the timeout
logic and map cleanup is done in the same iteration
loop.

Now, if soTimeout is not set, the clean up loop
operates every nioHarvestInterval milliseconds
(default 2000), we don't want to run it on
every selector event.

In addition, it runs if the selectionCount is
zero - this might occur when a socket
is closed, when the selector.wakeup() is called.
2012-04-19 13:32:29 -04:00
Gary Russell
d4e9cf5d83 NT-2400 Fix tool:expected-type Classes
* MessageChannel was moved from core to the base package.
* ChannelResolver moved from core to support.
* TcpConnectionInterceptorFactoryChain was incorrect.

Backport to 2.0.x
2012-01-13 09:54:34 -05:00
Mark Fisher
42f95faa61 INT-2335, INT-2336, INT-2337
upgraded spring framework dependency to 3.0.7.RELEASE

  upgraded spring security dependency to 3.0.7.RELEASE

  upgraded spring ws dependency to 2.0.3.RELEASE

  added exclusions for spring-ws transitive dependencies

  updated etag test for spring 3.0.7
2011-12-22 17:56:29 -05:00
Gary Russell
45defb0268 INT-2333 Mac OSX TCP Workaround on Server Side
Mac OSX problem was encountered only on the client; similar
code exists on the server side, so the workaround should
be implemented there too; just in case.
2011-12-22 16:35:45 -05:00
Gary Russell
df1821a279 INT-2333 2011-12-22 16:04:19 -05:00
Gary Russell
eda83aa1ce INT-2287 Timing Hole With Send-and-Forget TCP
If a tcp client connection factory was configured for single-use
connections (one socket per message), and it was used by an outbound
channel adapter (send and forget), the socket is closed immediately
after sending the message.

This could cause issues with the connection handling because certain
failures could occur. For example, the close could occur before we
ever registered the channel for read selection, resulting in a
ClosedChannelException. Secondly, there was a small timing hole
where a selection key could be invalidated between the isValid()
call and isReadable().

These problems have been corrected.
2011-11-30 16:25:33 -05:00
Gary Russell
e12ce5b933 INT-2168 Backport - Missing Port in Connection Id
Broken by INT-1822.
2011-10-06 07:38:25 -04:00
Mark Fisher
9a43781973 updated POMs for 2.0.6.BUILD-SNAPSHOT 2011-07-18 18:09:12 -04:00
Mark Fisher
2e605f24c9 updated template.mf files for 2.0.6.BUILD-SNAPSHOT 2011-07-18 18:07:12 -04:00
Mark Fisher
b1ee08b8d1 Release version 2.0.5.RELEASE 2011-07-18 17:36:31 -04:00
Oleg Zhurakousky
98bbb98de3 INT-1975 regenerated POM files 2011-07-14 11:49:16 -04:00
Gary Russell
9b626c946b INT-1937 Fix NIO Connection State on Exception 2011-06-11 10:35:12 -04:00
Gary Russell
fc7f3e9f83 INT-1895 Use FactoryBean to Allow Late-Binding of using-nio Attribute 2011-06-09 19:16:36 -04:00
Oleg Zhurakousky
5bf590bbfb changed POMs to use version 2.0.5.BUILD-SNAPSHOT 2011-05-23 08:19:47 -04:00
Mark Fisher
6d0aaa7c62 Update version to 2.0.5.BUILD-SNAPSHOT 2011-05-18 14:40:41 -04:00
Mark Fisher
939172e675 Release version 2.0.4.RELEASE 2011-05-18 14:26:36 -04:00
Oleg Zhurakousky
765503daa4 polishing, fixed warning messages 2011-05-03 19:20:57 -04:00
Gary Russell
06b9752af9 INT-1854 Allow restart after stop 2011-04-27 10:30:48 -04:00
Gary Russell
31e90fcca3 INT-1854 Remove unused imports; fix copyright dates 2011-04-26 21:26:47 -04:00
Gary Russell
8b0b8a76ae INT-1854 Shutdown task executor (if internal), close all sockets on close() 2011-04-26 21:11:22 -04:00
Gary Russell
6acb07ce00 INT-1877 Support Byte, Short, and Int Length Headers 2011-04-25 18:33:27 -04:00
Gary Russell
16b0248791 INT-1848 Add order Attribute to tcp, udp, jdbc Outbound Endpoints 2011-03-25 15:49:00 -04:00
Chris Beams
6e58a9ff99 Add <repositories> to generated poms
Synchronize with changes in buildSrc that add repositories
declared in gradle script(s) to generated maven poms during
`generatePom` task.

Issue: GRADLE-48
2011-03-14 01:04:05 +08:00
Gary Russell
9a5c26581b INT-1822 Add Attribute to Suppress Reverse DNS Lokup 2011-03-04 18:53:51 -05:00
Gary Russell
5e02a7e63b INT-1823 Protect NIO Selector from Unexpected Exceptions 2011-03-02 18:37:02 -05:00
Gary Russell
69b4a0db78 INT-1797 Polishing 2011-02-20 20:29:44 -05:00
Gary Russell
73e31e52ea INT-1797 Polish trace log entry 2011-02-20 15:51:19 -05:00
Gary Russell
2ddbf35cfb INT-1797 Polishing; fix failing test 2011-02-20 15:35:27 -05:00
Gary Russell
ecff2ce21e INT-1797 Remove ERROR Log on NIO Socket Close; Refactor common NIO Client/Server factory code to AbstractConnectionFactory 2011-02-20 15:05:56 -05:00
Mark Fisher
13ed0534a2 updated template.mf files for [2.0.4, 2.0.5) version range 2011-02-11 12:54:48 -05:00
Mark Fisher
0e75e6f64d updated POMs for 2.0.4.BUILD-SNAPSHOT 2011-02-11 12:52:37 -05:00
Mark Fisher
99dc2869af Re-release version 2.0.3.RELEASE 2011-02-10 09:16:12 -06:00
Mark Fisher
b46052e487 updated template.mf files for 2.0.3 2011-02-09 22:33:30 -06:00
Mark Fisher
73a50fe137 updated POMs for 2.0.4.BUILD-SNAPSHOT 2011-02-09 20:23:41 -06:00
Mark Fisher
c4dbad9ea4 Release version 2.0.3.RELEASE 2011-02-09 20:05:59 -06:00
Gary Russell
a2aedfb969 POMs updated from 2.0.2.RELEASE to 2.0.3.BUILD-SNAPSHOT as version for all project modules 2011-02-09 14:57:26 -05:00
Gary Russell
97617355ee INT-1785 Add Raw Single-Shot (De)Serializer 2011-02-09 14:54:50 -05:00
Mark Fisher
c854059ce6 Release version 2.0.2.RELEASE 2011-02-08 11:00:30 -06:00
Mark Fisher
6c6af30922 updating template.mf files for the 2.0.2 release 2011-02-07 09:32:16 -05:00
Gary Russell
cfd61c4218 INT-1707 Don't set SO_LINGER unless specified; close socket on send when appropriate, unless SO_LINGER=0; ensure any self-called close() is properly routed through any interceptors; suppress error on read when socket closed normally 2010-12-22 17:22:23 -05:00
Mark Fisher
42b0c5f581 POMs updated from 2.0.1.RELEASE to 2.0.2.BUILD-SNAPSHOT as version for all project modules 2010-12-21 19:01:50 -05:00
Mark Fisher
e6ac44dbbd Release version 2.0.1.RELEASE 2010-12-17 18:35:24 -05:00
Mark Fisher
6ecda01fda INT-1699 updated template.mf files for version 2.0.1 2010-12-17 17:25:21 -05:00
Dave Syer
64f2c5b61d Add bare bones .springBeans 2010-12-11 08:49:05 +00:00
Chris Beams
c8a24acfc6 Catch poms up with 2.0.1.BUILD-SNAPSHOT version 2010-11-26 11:26:07 -07:00
Mark Fisher
c712ac6315 Release version 2.0.0.RELEASE 2010-11-22 21:23:47 -05:00
Chris Beams
365108e7e3 Reflect hamcrest 1.1 dependency in generated poms 2010-11-22 16:18:21 -07:00
Chris Beams
1d3f4b2987 Upgrade junit:junit:4.7 -> junit:junit-dep:4.8.2
junit-dep does not bundle dependencies like hamcrest. This avoids
'duplicate package org.hamcrest' errors during javadoc generation
2010-11-22 15:06:02 -07:00
Gary Russell
c5dba36865 INT-1552 Add error-channel to other endpoint docs; schema doc polishing 2010-11-18 18:21:14 -05:00