spring integration, tcp listener, CLOSE_WAIT
I am using spring integration to get messages from remote sensors who are using GPRS via battery operated modems. These sensors open the connection, send the message (just like telnet message) and then close the connection. (I have no control over behavior of sensors.
The problem I am encountering that after a long period of time these sensors start to loose battery power and are unable to communicate properly. The symptoms I have is that I have lots of CLOSE_WAIT and ESTABLISHED connections.
I am wondering: Is there a way to specify that these unused connections can be killed. Once the connections hog up the system with lots of close waits, I stop receiving any more inputs.
I have investigated the issue on the internet, there are hints that it could be an error in the server end, but this only happens in my case once the battery starts to degrade.