You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question
Is the call to HttpChannelState.onContentAdded() in AsyncContentProducer.isReady() really necessary after the first if (content != null) check in case it resolves to true?
If it happens that this call is unneeded, the javadoc contract on ContentProducer.isReady() is then wrong as it explicitly says that the state MUST be UNREADY or READY after such call which would then be wrong as the state could also be IDLE then.
Jetty version
10.0
Question
Is the call to
HttpChannelState.onContentAdded()
inAsyncContentProducer.isReady()
really necessary after the firstif (content != null)
check in case it resolves to true?If it happens that this call is unneeded, the javadoc contract on
ContentProducer.isReady()
is then wrong as it explicitly says that the state MUST beUNREADY
orREADY
after such call which would then be wrong as the state could also beIDLE
then.This question was raised in the context of #5691.
The text was updated successfully, but these errors were encountered: