Override post request size limit

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Override post request size limit

mrundberget
Been using Ratpack with great success as a dummy for an sms and email service for some time now.
I run the app using groovy and the gradle plugin. Dead simple.

But now I've run into an issue with RatpackChannelInitializer.initChannel  -> ...  HttpObjectAggregator(65536)
Recently started testing with bigger message chunks and the size limit is a bit restricting.

Haven't been able to find an easy way to override this hardcoded value.
1) Any plans of making it configurable somehow ?
2) Any shortterm workaround suggestions on how to override ? ( I tried to override the initiChannel method using .metaClass in a custom module, but thats apparently to late in the game or I'm just doing it wrong...)

cheers
Magnus


Reply | Threaded
Open this post in threaded view
|

Re: Override post request size limit

mrundberget
of course the .metaClass hack wont work. Silly of me.
Reply | Threaded
Open this post in threaded view
|

Re: Override post request size limit

Luke Daley
Administrator
In reply to this post by mrundberget
It needs to be configurable via the configuration mechanism.

I've raised an issue for this: https://github.com/ratpack/ratpack/issues/168

I'll get to it this week.