Space: Apache River (https://cwiki.apache.org/confluence/display/RIVER) Page: User Guide - SocketFactories (https://cwiki.apache.org/confluence/display/RIVER/User+Guide+-+SocketFactories)
Edited by Sim IJskes: --------------------------------------------------------------------- h1. Using a SocketFactory with a TcpEndpoint The SocketFactory needs to be Serializable. Make sure the hashcode of the SocketFactory stays the same during serialization. Otherwise you end up with multiple connections, and a lot of threads on the serverside. This is caused by the use of the hashcode of the SocketFactory in the hashcode of the endpoint. When it is not stable, seemingly equal endpoints do not get interned as the same endpoint. Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action
