From dev-return-203652-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Fri Nov 22 10:33:55 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1EAFF180629 for ; Fri, 22 Nov 2019 11:33:55 +0100 (CET) Received: (qmail 55965 invoked by uid 500); 22 Nov 2019 10:33:53 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 55955 invoked by uid 99); 22 Nov 2019 10:33:53 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2019 10:33:53 +0000 Received: from bz-he-de.apache.org (bz-he-de.apache.org [148.251.237.210]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 2FE60E0F34 for ; Fri, 22 Nov 2019 10:33:53 +0000 (UTC) Received: by bz-he-de.apache.org (ASF Mail Server at bz-he-de.apache.org, from userid 33) id E68AD6A005E; Fri, 22 Nov 2019 10:33:51 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 63949] ERR_INCOMPLETE_CHUNKED_ENCODING errors when using NIO Connector with HTTPS Date: Fri, 22 Nov 2019 10:33:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 9 X-Bugzilla-Component: Util X-Bugzilla-Version: 9.0.20 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: remm@apache.org X-Bugzilla-Status: NEEDINFO X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: ----- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D63949 --- Comment #2 from Remy Maucherat --- The previous code was using a write loop, that's the only difference I can = see and you can try it. Such as: --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -1273,9 +1273,13 @@ // registered for write once as both container and user co= de can trigger // write registration. } else { - if (socket.write(from) =3D=3D -1) { - throw new EOFException(); - } + int n =3D 0; + do { + n =3D socket.write(from); + if (n =3D=3D -1) { + throw new EOFException(); + } + } while (n > 0 && from.hasRemaining()); } updateLastWrite(); } If you are still experiencing an issue, please provide a test case (there's= an extensive non blocking write test in the Tomcat testsuite, which is not failing). --=20 You are receiving this mail because: You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org