mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-23 16:05:00 +00:00
Introduced a Response.DemandedContentListener to explicitly separate the will to request more content from the notification that the content has been consumed. Updated all transports to follow the new semantic: rather than waiting for the callback to complete before delivering more content, now they wait for the demand to be positive to deliver more content. Since now the content may be unconsumed but there can be more demand, all transport implementation had to be changed to use RetainableByteBuffer to retain content buffers that were not consumed. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>