On Nov 22, 2007 10:00 AM, parki <[EMAIL PROTECTED]> wrote: > > hello! > > I'm working on an async http server, transferring messages either way (ie. > not necessarily request response). I'm basing the code on > org.apache.mina.example.httpserver.codec. > > Everything works well, until I slam a bunch of messages to the server > (simple GETs). > > After some digging around, it's clear that there can be more than one > complete message in the IoBuffer when decodable/decode is called. I've tried > to rework the HttpRequestDecoder to parse up a possible bunch of messages, > but running into many twisty little tunnels - something is telling me I > might be going down the rabbit hole. > > It's looking like the contents of the IoBuffer isn't, well, isn't exactly > right, and I start to get off-by-one errors trying to find the location of > the next message (if there is more than one) and then things go all to hell. > > Can anyone shed any light on this?
I'd like to recommend you to try mina-filter-codec-http in our trunk instead... :) HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
