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/09/27 16:47:33 UTC
[jira] Commented: (HTTPCORE-236) Failed to receive last chunk of
the large https response through httpcore-nio
[ https://issues.apache.org/jira/browse/HTTPCORE-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915324#action_12915324 ]
Oleg Kalnichevski commented on HTTPCORE-236:
--------------------------------------------
This just does not look right. The DefaultNHttpClientConnection passes an instance of SessionBufferStatus it implements to the I/O session object at the construction time. So, the I/O session should always be aware of the data in the connection's buffers. If there is some buffered input the SSLIOSession#isAppInputReady() method should always return true.
Please try to reproduce the problem with a test case. Otherwise, I will have to put the issue back to RESLOVED.
Oleg
> Failed to receive last chunk of the large https response through httpcore-nio
> ------------------------------------------------------------------------------
>
> Key: HTTPCORE-236
> URL: https://issues.apache.org/jira/browse/HTTPCORE-236
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore NIO
> Affects Versions: 4.1-beta2
> Environment: java 1.6_06 windows xp, linux redhat.
> Reporter: Dmitry
> Priority: Critical
> Fix For: 4.1
>
> Attachments: SSLClientIOEventDispatch.diff, SSLIOSession.diff
>
> Original Estimate: 120h
> Remaining Estimate: 120h
>
> I'm a wso2 esb (synapse) user/developer.
> I got a problem with https nio transport.
> I tried versions 4.1 alpha1 and 4.1 beta2.
>
> The problem:
> transport failed to receive large (50k) response through nio https.
> The connection is keep-alive and chunked. Every time I received only response divisible
> by 8192 and last chunk is never returned.
>
> After digging the logs and code I found that last chunk not returned because
> of the code in this class org.apache.http.impl.nio.reactor.SSLIOSession.java
>
> I changed one line in the code and now it's working.
> Now I want to ask somebody who knows the code if this change is ok,
> and maybe it should be applied to httpcore (see attached file)
--
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