[jboss-jira] [JBoss JIRA] Created: (JBAS-5791) JBossMQ ReadTask in UIL2 could block until socket timeout

Takayoshi Kimura (JIRA) jira-events at lists.jboss.org
Tue Jul 22 12:40:16 EDT 2008


JBossMQ ReadTask in UIL2 could block until socket timeout
---------------------------------------------------------

                 Key: JBAS-5791
                 URL: https://jira.jboss.org/jira/browse/JBAS-5791
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: JMS (JBossMQ)
    Affects Versions: JBossAS-4.2.3.GA
            Reporter: Takayoshi Kimura
            Assignee: Adrian Brock


This is similar to JBPAPP-685, but in ReadTask. The in.readByte() call in ReadTask won't be interrupted when the thread is interrupted. When this happened the connection.close() call in client won't return until socket timeout, 2 min by default.

Since it's blocking socket, we can't use short timeout approach applied for WriteTask.

The only way to interrupt ReadTask is to call Socket.close() or close() on InputStream underlying socket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list