You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2010/03/05 18:52:27 UTC

[jira] Commented: (HTTPCORE-220) IdentityDecoder fails to detect end of stream when using file channels

    [ https://issues.apache.org/jira/browse/HTTPCORE-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841952#action_12841952 ] 

Oleg Kalnichevski commented on HTTPCORE-220:
--------------------------------------------

Asankha,
Could you please add an entry to the release notes for this issue?

Oleg

> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org