hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Can an HTTP server close the socket before its client has finished receiving the message?
Date Fri, 11 Jul 2008 17:12:29 GMT
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


Mime
View raw message