[
https://issues.apache.org/jira/browse/HTTPCORE-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464460
]
Oleg Kalnichevski commented on HTTPCORE-24:
-------------------------------------------
Hi Asankha,
The problem turned out to be a little more complex. Flushing the session buffer
once is not sufficient as there is no guarantee that the underlying socket
channel is able to accept the entire content of the buffer
Could you please test the attached patch and let me know if it fixes the
problem for you?
Oleg
> Last chunk not flushed when using chunking for responses
> --------------------------------------------------------
>
> Key: HTTPCORE-24
> URL: https://issues.apache.org/jira/browse/HTTPCORE-24
> Project: HttpComponents Core
> Issue Type: Bug
> Components: HttpCore NIO
> Affects Versions: 4.0-alpha3
> Reporter: Asankha C. Perera
> Assigned To: Oleg Kalnichevski
> Priority: Critical
> Fix For: 4.0-alpha4
>
> Attachments: 20070113-nhttpconn.patch
>
>
> I am using HttpCore with NIO extensions and trying to use chunked encoding
> for the response if the version is HTTP 1.1. However, it seems that the last
> chunk does not get written back to the client.. The output sent back to the
> client is as follows
> HTTP/1.1 200 OK
> Content-Type: text/xml; charset=UTF-8
> Date: Fri, 12 Jan 2007 05:27:20 GMT
> Server: Synapse-HttpComponents-NIO/1.1
> Transfer-Encoding: chunked
> Connection: Keep-Alive
> 396
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:wsa="http://www.w3.org/2005/08/addressing"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">...................</soapenv:Envelope>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]