synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-155) NIO HTTP is not supporting HTTP GET correctly
Date Fri, 19 Oct 2007 09:40:50 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536161
] 

Oleg Kalnichevski commented on SYNAPSE-155:
-------------------------------------------

Ruwan,
I think found the cause of the problem. ClientHandler closes output sink channel prematurely
at the same time with the connection to the target server, while the ServerHandler is still
busy sending the response content back the client. This is a separate issue from the original
one. I think you should close this issue and open a new one specifically for the said problem.

Oleg

=======================
    /**
     * Process ready input (i.e. response from remote server)
     * @param conn connection being processed
     * @param decoder the content decoder in use
     */
    public void inputReady(final NHttpClientConnection conn, final ContentDecoder decoder)
{
        HttpContext context = conn.getContext();
        HttpResponse response = conn.getHttpResponse();
        WritableByteChannel sink = (WritableByteChannel) context.getAttribute(RESPONSE_SINK_CHANNEL);
...
            if (decoder.isCompleted()) {
                if (sink != null) sink.close(); // oopsie
...
            }

...
=======================


> NIO HTTP is not supporting HTTP GET correctly
> ---------------------------------------------
>
>                 Key: SYNAPSE-155
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-155
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 1.1.QA.B.2
>            Reporter: Paul Fremantle
>         Attachments: synapse-nio-http.patch
>
>
> When calling a GET I get this stacktrace
> 2007-10-17 17:27:01,718 [10.62.75.83-pzfdell] [HttpServerWorker-1] ERROR ServerHandler
Unexpected HT
> TP protocol error : Transfer-encoding header already present
> org.apache.http.ProtocolException: Transfer-encoding header already present
>         at org.apache.http.protocol.ResponseContent.process(ResponseContent.java :67)
>         at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:304)
>         at org.apache.synapse.transport.nhttp.ServerHandler.commitResponse(ServerHandler.java:220)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse (HttpCoreNIOSender.
> java:350)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:215)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:104)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:1
> 96)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message