Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Async IO failed with IllegalStateException in HttpOutput


it is not necessary that write has to be called from within onWritePossible, but it is necessary that write is called AFTER onWritePossible has been called.

For example we have a throttling app that when onWritePossible is called, it can decide to schedule a timer that will callback after a short time (in a different Thread), that thread can then just call onWritePossible itself which then loops on isReady and write until isReady returns false or all the content is written.

Greg Wilkins <gregw@xxxxxxxxxxx>  @  Webtide - an Intalio subsidiary HTTP, SPDY, Websocket server and client that scales  advice and support for jetty and cometd.

Back to the top