Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 60702 invoked from network); 11 Jul 2008 17:13:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2008 17:13:01 -0000 Received: (qmail 61874 invoked by uid 500); 11 Jul 2008 17:13:01 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 61682 invoked by uid 500); 11 Jul 2008 17:13:01 -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 61671 invoked by uid 99); 11 Jul 2008 17:13:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 10:13:01 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.44] (HELO ok2consulting.nine.ch) (217.150.250.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 17:12:08 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 296D41984FC; Fri, 11 Jul 2008 19:12:29 +0200 (CEST) Received: from [192.168.1.102] (84-75-129-240.dclient.hispeed.ch [84.75.129.240]) by ok2consulting.nine.ch (Postfix) with ESMTP id EA6DC1984FA for ; Fri, 11 Jul 2008 19:12:28 +0200 (CEST) Subject: Re: Can an HTTP server close the socket before its client has finished receiving the message? From: Oleg Kalnichevski To: HttpComponents Project In-Reply-To: <4877395E.4080603@odi.ch> References: <487737DE.1030003@wso2.com> <4877395E.4080603@odi.ch> Content-Type: text/plain; charset=utf-8 Date: Fri, 11 Jul 2008 19:12:29 +0200 Message-Id: <1215796349.13981.34.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.3 required=5.0 tests=AWL,HOT_NASTY autolearn=no version=3.0.3 On Fri, 2008-07-11 at 12:43 +0200, Ortwin Glück wrote: > Asanka, > > The exact timing of the remote side closing the connection shouldn't matter. If > coded propertly, buffers are flushed before/on close. The TCP FIN sequence will > be queued *after* all the data packets. So the data will remain within the TCP > stack and is not lost, even if the client starts reading long after the > connection has been closed. A packet dump (Wireshark) should give us more > information here. > > Ortwin > Asankha, The most plausible cause of this problem is a failure to flush the output buffer on the server side. Given this is Weblogic, which is known to be very stable, I admit this assumption does seem far fetched. So, I would not rule out HttpCore SSL session behaving funny for some reason. What version of Weblogic is it? Is it fully patched? Please let me know if I can help you in any way. Oleg > Asankha C. Perera wrote: > > Hi All > > > > When talking over SSL to a BEA WLI server, it responds with a > > "Connection: close" header, and seems to close the socket, before Apache > > Synapse (using HttpCore/NIO) could read the full message (~11K in size). > > Its setting the 'Content-length' header, but when debugging the SSL > > communication, we see that the full reply never reaches the client. > > > > 0580: 22 68 74 74 70 3A 2F 2F 77 77 77 2E 69 62 7A 2E "http://www.xxx. > > 0590: 72 72 6E 2E 66 67 6F 76 2E 62 65 2F 58 53 44 2F xxx.xxxx.xx/XSD/ > > 05A0: 78 6D 32 35 2F 72 6E 32 D7 DF 5D F5 F3 3F F2 10 xm25/rn2..]..?.. > > 05B0: EB C2 AF F9 C4 F7 B4 49 .......I > > 2008-07-10 23:49:01,959 [127.0.1.1-asankha] [I/O dispatcher 2] DEBUG > > SSLIOSession I/O session sslclient-4 [interested ops: [r]; ready ops: > > [r]][SSL handshake status: NOT_HANDSHAKING][1901][0][0][0]: 1448 bytes read > > 2008-07-10 23:49:01,959 [127.0.1.1-asankha] [I/O dispatcher 2] DEBUG > > SSLIOSession I/O session sslclient-4 [interested ops: [r]; ready ops: > > [r]][SSL handshake status: NOT_HANDSHAKING][1901][0][0][0]: -1 bytes read > > 2008-07-10 23:49:01,977 [127.0.1.1-asankha] [HttpClientWorker-2] ERROR > > AxisEngine Error in extracting message properties > > org.apache.axis2.AxisFault: Error in extracting message properties > > > > Is this something possible when using "Connection: close" ? and if so, > > what can a client do to prevent loosing the reply > > > > thanks > > asankha > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > > For additional commands, e-mail: dev-help@hc.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org