Openfire (ARCHIVED)
  1. Openfire (ARCHIVED)
  2. JM-650

Concurrency error may confuse the server and assume that a connection is dead

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.2
    • Component/s: Core
    • Labels:
      None

      Description

      The instance variable writeStarted in SocketConnection is not thread safe. So while it is being used in SocketConnection#checkHealth it may be modified. Therefore, the server will be confused and will assume that the connection is dead thus closing it.

      2006.04.17 13:55:53 Closing connection: org.jivesoftware.wildfire.net.SocketConnection@3b96bb socket: Socket[addr=/138.35.105.1,port=1160,localport=5222] session: org.jivesoftware.wildfire.ClientSession@135b92e status: 3 address: username@jci-jabber/spark id: 6ede9371 presence:
      <presence id="7jgmd-1036" from="username@jci-jabber/spark">
      <status>Online</status>
      <x xmlns="vcard-temp:x:update">
      <photo>2ae1ba603119edc85816391e53cfd93e</photo>
      </x>
      <x xmlns="jabber:x:avatar">
      <hash>2ae1ba603119edc85816391e53cfd93e</hash>
      </x>
      </presence> that started sending data at: Wed Dec 31 16:59:59 MST 1969

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Gaston Dombiak
            Reporter:
            Gaston Dombiak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development