Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] setspawnorshrinkat method equivalent in Jetty 9 ?


Yay for Jetty 6 still working away!!! 

The ThreadPools have been changed somewhat, so there is no direct equivalent of setspawnorshrinkat.  What exactly do you want to achieve?

Throwing BadMessageException is a bit of a big stick - but it is save to do so.  Calling response.sendError is gentler way of generating errors, but if you don't have the response at hand...

cheers





On 4 September 2016 at 16:40, Kalyan Srinivas <7kalyan.srinivas@xxxxxxxxx> wrote:
Hi all,

I have 2 question regarding upgrade of Jetty

1. we are upgrading from Jetty 6 to Jetty 9 and in the old code we are using this method ''setspawnorshrinkat'' and seems like this method is removed from the threadpool class in recent Jetty versions. Is there any equivalent of this method so that I can replace it with ?

2. Second thing is I replaced few places where we are throwing HttpException in Jetty 6 with BadMessageException in Jetty 9, hope that does not hurt?

Thanks
Kalyan

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--

Back to the top