[JBoss JIRA] Resolved: (NETTY-299) HttpMessageDecoder and proxy Response

Trustin Lee (JIRA) jira-events at lists.jboss.org
Mon Jan 31 21:10:39 EST 2011


     [ https://issues.jboss.org/browse/NETTY-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee resolved NETTY-299.
-------------------------------

    Resolution: Done


This issue has been resolved already by HttpClientCodec.

> HttpMessageDecoder and proxy Response
> -------------------------------------
>
>                 Key: NETTY-299
>                 URL: https://issues.jboss.org/browse/NETTY-299
>             Project: Netty
>          Issue Type: Bug
>          Components: Handler
>    Affects Versions: 3.1.5.GA
>            Reporter: Minas Abramyan
>            Assignee: Trustin Lee
>              Labels: Http
>
> I'm sending http request to my proxy server:
> "CONNECT reg.dev.malakk.com:443 HTTP/1.1
> Connection: keep-alive
> Host: reg.dev.malakk.com:443
> Proxy-Authorization: Basic bWFicmFteWFuOnF3ZXF3ZQ==
> "
> Proxy send http response to me:
> "HTTP/1.1 200 Connection established
> Proxy-Connection: keep-alive
> Proxy-agent: SmallProxy
> "
> HttpMessageDecoder parsed it like HttpResponse, and waiting for a chunks of this response. 
> Then i'm send next http request and HttpMessageDecoder parse response on this request like HttpChunk.
> I think the problen in this place:
> HttpMessageDecoder String #188:
> if (contentLength == 0 || contentLength == -1 && isDecodingRequest()) {
> when i change it to:
> if (contentLength == 0 || contentLength == -1) {
> works fine. 
> Is this fix enough?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the netty-dev mailing list