Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-5224

TcpHandler in eventd times out too soon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.1
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      CentOS 6

      Description

      Many users take advantage of the ability to send events into eventd on port 5817. Something has changed between 1.8 and 1.10 that causes connections to that port to time out very quickly, on the order of seconds. This prevents code that used to work from working on 1.10.

      Test:

      On 1.8.16:

      telnet localhost 5817
      Trying ::1...
      telnet: connect to address ::1: Connection refused
      Trying 127.0.0.1...
      Connected to localhost.
      Escape character is '^]'.

      This connection will sit for a long time without closing.

      On 1.10.0:
      telnet localhost 5817
      Trying ::1...
      telnet: connect to address ::1: Connection refused
      Trying 127.0.0.1...
      Connected to localhost.
      Escape character is '^]'.
      Connection closed by foreign host.

      The connection is closed within a second. Here is the log:

      ==> eventd.log <==
      2012-03-06 15:40:25,501 DEBUG [Event TCP Server[5817]] TcpServer: New connection accepted from 127.0.0.1:47237
      2012-03-06 15:40:25,502 DEBUG [Event TCP Server[5817]] TcpServer: A new stream handler thread has been started
      2012-03-06 15:40:25,502 DEBUG [Event TCP Server[5817]] TcpServer: Waiting for new connection
      2012-03-06 15:40:25,502 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpStreamHandler: Event Log Stream Handler Started for /127.0.0.1
      2012-03-06 15:40:25,502 DEBUG [TCPRecord Chunker[127.0.0.1:47237]] TcpRecordHandler: Thread started, remote is 127.0.0.1
      2012-03-06 15:40:26,002 DEBUG [TCPRecord Chunker[127.0.0.1:47237]] TcpRecordHandler: Thread Interrupted
      2012-03-06 15:40:26,003 DEBUG [TCPRecord Chunker[127.0.0.1:47237]] TcpRecordHandler: Thread Terminated
      2012-03-06 15:40:26,502 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpStreamHandler: stopping record handler
      2012-03-06 15:40:26,502 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpRecordHandler: Interrupting thread TCPRecord Chunker[127.0.0.1:47237]
      2012-03-06 15:40:26,502 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpRecordHandler: Joining Thread TCPRecord Chunker[127.0.0.1:47237]
      2012-03-06 15:40:26,503 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpRecordHandler: Thread TCPRecord Chunker[127.0.0.1:47237] Joined
      2012-03-06 15:40:26,503 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpStreamHandler: record handler stopped
      2012-03-06 15:40:26,503 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpStreamHandler: closing connnection
      2012-03-06 15:40:26,504 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpStreamHandler: connnection closed
      2012-03-06 15:40:26,504 DEBUG [Event TCP Receiver[5817][127.0.0.1:47237]] TcpStreamHandler: Thread exiting

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              tarus Tarus Balog
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: