Uploaded image for project: 'JBoss Remoting (3+)'
  1. JBoss Remoting (3+)
  2. REM3-299

resumeRead and resumeWrite can overwrite each others

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.Final
    • None
    • None
    • Hide

      This could be the cause of remaining timeouts observed when connecting CLI to remote servers.

      Show
      This could be the cause of remaining timeouts observed when connecting CLI to remote servers.

      In ClientConnectionOpenListener, we have 2 places where, in I-O thread the connection is asked to send a buffer (in a Task thread) then the reads are resumed (in the I-O thread).
      So at the selector level we have 2 setOps done in // that could interfere with each other (one of the 2 interested op could be lost).
      Same in ServerConnectionOpenListener, we 1 place when starting TLS.

      A possible fix would be to simply resumeReads first in the I-O thread, then call connection.send This is what is done in all other cases. These 3 occurrences seem a left over.

            jdenise@redhat.com Jean Francois Denise
            jdenise@redhat.com Jean Francois Denise
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: