Re: [jetty-users] Should fully consume the InputStream of InputStreamResponseListener before close it?

2019-10-08 Thread Greg Wilkins
Cao, The answer is "it depends". Closing the stream will result in the connection being closed and not reused for other requests. Making new connections can be expensive, especially if SSL is used, plus new connections are often slower than old connections as their flow control windows are not

[jetty-users] Should fully consume the InputStream of InputStreamResponseListener before close it?

2019-10-08 Thread Đạt Cao Mạnh
Hi guys, I kinda see this pattern frequently in Apache HttpClient Please note that if response content is not fully consumed the underlying connection cannot be safely re-used and will be shut down and discarded by the connection manager. Wondering it will be the same pattern need to apply

Re: [jetty-users] ServletContextListener defers server start

2019-10-08 Thread Dirk Olmes
On 10/7/19 9:15 PM, Joakim Erdfelt wrote: > I went ahead and added an example to the Embedded Jetty Cookbook. > > https://github.com/jetty-project/embedded-jetty-cookbook/blob/master/src/main/java/org/eclipse/jetty/cookbook/DelayedWebAppDeployExample.java > > That explains how to accomplish what