You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2007/01/13 12:33:27 UTC

[jira] Commented: (HTTPCORE-24) Last chunk not flushed when using chunking for responses

    [ https://issues.apache.org/jira/browse/HTTPCORE-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464438 ] 

Asankha C. Perera commented on HTTPCORE-24:
-------------------------------------------

This needs to be fixed for both server and client sides (DefaultNHttpServerConnection:produceOutput() and DefaultNHttpClientConnection:produceOutput())

i.e. if contentEncoder.isCompleted(), then flush current buffer to the channel

> 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
>
>
> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org