[jboss-jira] [JBoss JIRA] (JGRP-2328) NioConnection.Reader thread can miss stop request

Dan Berindei (Jira) issues at jboss.org
Wed Jan 23 02:37:00 EST 2019


Dan Berindei created JGRP-2328:
----------------------------------

             Summary: NioConnection.Reader thread can miss stop request
                 Key: JGRP-2328
                 URL: https://issues.jboss.org/browse/JGRP-2328
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 4.0.16
            Reporter: Dan Berindei
            Assignee: Bela Ban


When [NioConnection.Reader._run()|https://github.com/belaban/JGroups/blob/d0d77d85f28efefaa2f0f262d3b1c279558c3f1f/src/org/jgroups/blocks/cs/NioConnection.java#L476] waits on the {{CondVar}} it should avoid waiting if {{running = false}}.

Currently it only avoids waiting if {{data_available = true}}, which is also set by {{NioConnection.Reader.stop()}}, but which is reset a few lines above.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list