Announcement Announcement Module
Collapse
No announcement yet.
spring integration, tcp listener, CLOSE_WAIT Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring integration, tcp listener, CLOSE_WAIT

    Hello all,
    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.

    (see https://jira.springsource.org/browse/INT-1008)

    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.

  • #2
    Yes, you have found a bug in the inbound adapter/gateway. The close_wait indicates that the client closed the socket but the OS is waiting for the server to close its end. We are detecting the closure ok but not closing the server side of the socket.

    Please create a JIRA, I should be able to get you a fix quickly.

    Thanks for finding and reporting this!

    Comment


    • #3
      Thank you for the prompt response.

      Issue created (https://jira.springsource.org/browse/INT-1151)

      Comment

      Working...
      X