Hello! I have implemented tcp server based on apache mina. it holds tcp connections and communicate vice versa with clients. now i need to implement acceptor the way it accepts data using TextLineCodecFactory but at the same time it can read http request and resend it, then the reply pass back to the session.
i have implemented that after "messageReceived" i just put messages into string with \r\n, then in the end i have plain http request. I send it to the server, server replies, I receive reply and send it to the initial connection from client. This is some kind of proxy server. Now everything works EXCEPT that when I receive either message from client or from http server (the last phase) and request/response has content-length higher than 0 (request with post/patch and/or the usual response) I will end up where HTTP headers end, no matter what I do, I just do not get the BODY itself, can you please guide me what might be the issue? Thank you, Mina rocks! -- If an experiment works, something has gone wrong :P
