Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ECF2B200D24 for ; Tue, 24 Oct 2017 11:51:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EB4FD160BE0; Tue, 24 Oct 2017 09:51:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 15D5F160BDB for ; Tue, 24 Oct 2017 11:51:06 +0200 (CEST) Received: (qmail 64334 invoked by uid 500); 24 Oct 2017 09:51:06 -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 64323 invoked by uid 99); 24 Oct 2017 09:51:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 09:51:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 02F271A1410 for ; Tue, 24 Oct 2017 09:51:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1-pGtJ_WX5t2 for ; Tue, 24 Oct 2017 09:51:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 639F85FE0E for ; Tue, 24 Oct 2017 09:51:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C5E0DE045B for ; Tue, 24 Oct 2017 09:51:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7482D21302 for ; Tue, 24 Oct 2017 09:51:00 +0000 (UTC) Date: Tue, 24 Oct 2017 09:51:00 +0000 (UTC) From: "Philippe Mouawad (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HTTPCLIENT-1877) java.io.EOFException: Unexpected end of ZLIB input stream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Oct 2017 09:51:08 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16216626#comment-16216626 ] Philippe Mouawad edited comment on HTTPCLIENT-1877 at 10/24/17 9:50 AM: ------------------------------------------------------------------------ [~olegk], I don't understand your request. When I first opened the issue with Deflate: - I provided a patch that you refused because it could be too impacting. The patch worked on application for Deflate. You requested me then to provide the wire traffic, as I had written, I don't have access to the application on demand, so I had to wait a bit to have this access and I now create a new issue and provided the wire traffic as I thought you wanted it to analyze the problem and root cause. What did I misunderstand ? Is it that you think there is no bug in HC4 on this item ? If so, I don't think so, as content is correctly decoded by browser with deflate, it only fails when accessed through HttpClient 4.5.3. When we remove Deflate from Accept-Encoding, the response is correctly decoded, but unfortunately as I don't have access to application I cannot attach the wire response, but please believe me on this, why would I be cheating ? What exactly do you want me to provide beside all this ? Thank you Regards was (Author: p.mouawad@ubik-ingenierie.com): @Olegk, I don't understand your request. When I first opened the issue with Deflate: - I provided a patch that you refused because it could be too impacting. The patch worked on application for Deflate. You requested me then to provide the wire traffic, as I had written, I don't have access to the application on demand, so I had to wait a bit to have this access and I now create a new issue and provided the wire traffic as I thought you wanted it to analyze the problem and root cause. What did I misunderstand ? Is it that you think there is no bug in HC4 on this item ? If so, I don't think so, as content is correctly decoded by browser with deflate, it only fails when accessed through HttpClient 4.5.3. When we remove Deflate from Accept-Encoding, the response is correctly decoded, but unfortunately as I don't have access to application I cannot attach the wire response, but please believe me on this, why would I be cheating ? What exactly do you want me to provide beside all this ? Thank you Regards > java.io.EOFException: Unexpected end of ZLIB input stream > --------------------------------------------------------- > > Key: HTTPCLIENT-1877 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1877 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 4.5.3 > Environment: Java HotSpot(TM) 64-Bit Server VM 1.8.0_144 > Windows 7 Enterprise > Reporter: Philippe Mouawad > Attachments: wire.txt > > > At JMeter project a user has reported an issue that generates this stacktrace : > {code:java} > java.io.EOFException: Unexpected end of ZLIB input stream > at java.util.zip.InflaterInputStream.fill(Unknown Source) > at java.util.zip.InflaterInputStream.read(Unknown Source) > at org.apache.http.client.entity.DeflateInputStream.read(DeflateInputStream.java:88) > at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:70) > at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:135) > at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:148) > at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1814) > at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:440) > at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:433) > at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) > at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189) > at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178) > at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) > at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) > at java.lang.Thread.run(Unknown Source) > {code} > Although this issue has been reported in the past through https://issues.apache.org/jira/browse/HTTPCLIENT-1699 , it is not yet fixed. > I have previously reported it under https://issues.apache.org/jira/browse/HTTPCLIENT-1869 and was requested to provide more details > In the attached log, the issue occurs on second request. > Removing Deflate from Accept-Encoding is a workaround, so issue is located in Deflate management, GZIP works fine. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org