IdentityDecoder fails to detect end of stream when using file channels
----------------------------------------------------------------------

                 Key: HTTPCORE-220
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-220
             Project: HttpComponents HttpCore
          Issue Type: Bug
          Components: HttpCore NIO
    Affects Versions: 4.1-alpha1
            Reporter: Asankha C. Perera
            Assignee: Asankha C. Perera
             Fix For: 4.1-beta1


The IdentityDecoder which checks for "this.channel.isOpen()" to detect the EOF 
when using file channels does not detect a remote socket closure. The only 
possibility is by reading from the channel, as  the 
"dst.transferFrom(this.channel, position, count)" only returns 0 or
the number of bytes read - and never -1. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to