Hi Oleg, So to summarize when I receive a request a) without content - triggers just 'requestReceived' b) with content - is also followed with several 'inputReady' until decoder.isCompleted() returns true
1) In your 'ThrottlingHttpServiceHandler.inputReady you just consumeContent, where do you invoke the processing of the request once received ? When receiving request with content do I have to override this method adding the check decoder.isCompleted() and invoking 'processRequest' ? 2) When I receive a 'requestReceived' is it received with request line + headers, but without content in case of requests with content ? I am asking this because here I can prepare a new request to invoke to a destination host, this request will have slightly modified in line of proxy servers compliance. I think that I have to do some 'content transformation' as I have to make a destination request with slightly modified headers and eventually to normalize the response (deflate, dechunk)... 3) What scope have suspendInput() calls ? The flow of the calls is something like this: a) receive a request b) make a new slightly modified request c) invoke request to destination host (trough a nio client) d) receive a response e) translate received response (transforming it) to a response of a) Excuse my ignorance but I continue to not see a way to 'wait' for c) and d) before doing e)... Am I thinking and working like salmons and going upstream here ? Probably I am not getting this 'suspend' stuff, but is there some sample code ? Thanks to very nice and helpful comrade, Stojce --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
