Hi guys, Thanks for the initial code, it looks like a good start.
FYI, I've added a link back to this thread in the related RFE. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : [email protected] [mailto:[email protected]] Envoye : vendredi 6 fevrier 2009 19:50 A : [email protected] Objet : RE: Re: How to integrate jetty's ThrottlingFilter Tim, > - Postdecrement of a volatile is not atomic. > - Calls to "foreign" code in a synchronized block risks deadlock. you are so right, I noticed this too, but after I sent the mail. Problems did arise when decrementing the volatile int. > - As you suspected, there is no guarantee that afterHandle will be called > once for every call to beforeHandle. Just for the record, afterHandle is not called, when uncought exceptions occur. Will test your version now, thanks a bunch! ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1114154 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1140488

