Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 21707 invoked from network); 26 Sep 2010 09:14:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Sep 2010 09:14:58 -0000 Received: (qmail 21884 invoked by uid 500); 26 Sep 2010 09:14:58 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 21693 invoked by uid 500); 26 Sep 2010 09:14:56 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 21685 invoked by uid 99); 26 Sep 2010 09:14:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Sep 2010 09:14:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Sep 2010 09:14:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8Q9EXiw001059 for ; Sun, 26 Sep 2010 09:14:33 GMT Message-ID: <4124689.405931285492473692.JavaMail.jira@thor> Date: Sun, 26 Sep 2010 05:14:33 -0400 (EDT) From: "Dmitry (JIRA)" To: dev@hc.apache.org Subject: [jira] Updated: (HTTPCORE-236) Failed to receive last chunk of the large https response through httpcore-nio In-Reply-To: <32025334.405861285491215571.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCORE-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry updated HTTPCORE-236: ---------------------------- Attachment: SSLIOSession.diff org.apache.http.impl.nio.reactor.SSLIOSession.java public synchronized boolean isAppInputReady() throws IOException { int bytesRead = receiveEncryptedData(); if (bytesRead == -1) { this.endOfStream = true; } doHandshake(); decryptData(); // Some decrypted data is available or at the end of stream return (this.appEventMask & SelectionKey.OP_READ) > 0 && (this.inPlain.position() > 0 || (this.endOfStream && this.status == ACTIVE) || this.appBufferStatus.hasBufferedInput() ); } > 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 > Attachments: 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