[Rabbit-dev] bad url request error

Robert Olofsson robert.olofsson at khelekore.org
Mon Jan 30 21:12:39 CET 2012


On Mon, 30 Jan 2012 16:56:40 +0100
Romain Godefroy <rgodefroy at thalos.fr> wrote:
> Our rabbit proxy is used through sattelite links.

Glad to hear you have found such a use for it.

>  With this kind of 
> network, the first TCP/IP packets are sometimes very small (96
> bytes). Then we got this exception:

Ok, that is interesting.

> ATTENTION: Bad url: HTTP/1.1

Ok, I have seen one or two such issues, but not for some time.
What version are you using?

Can you try the current git version, the last changes
that could affect this are:

Date:   Sun Jan 1 15:05:57 2012 +0100
    Use the BufferHandler and CachingBufferHandler from rnio instead of
    having our own copies.

Date:   Sun Jan 1 16:20:33 2012 +0100
    Try to make sure that growing buffers gets new content in the right
    place.

Especially the second entry sounds like it could affect your
problem.

Can you do:
git clone http://www.khelekore.org/rabbit/rabbit.git
cd rabbit
make 

If you do not have make you can build with ant instead.

> I check with a wireshark network capture and the request is complete.

Ok, do you have that capture in a format that can be shared?
Be careful, it may contain sensitive information, but still
if I can see the traffic it might be easier to diagnose this.

> I think the parser can't handle the first line because it is longer
> than the first packet and the buffer read doesn't restart from
> begining?

Could be, the code is supposed to try to read more in that case.

I do not think that your patch will work if you pipeline requests
though, so I do not think we can use it right away. Sadly the network
parsing is a bit complex to get right.

/robo



More information about the Rabbit-dev mailing list