I'm using jetty and JSF 2.2 in my webapp. Normally when I make a change to a page it refreshes fine in my webapp. After load testing the page (I load a page 500 times), the page stops refreshing.
However, if I change the FACELETS_REFRESH_PERIOD from 2->0 it starts refreshing again. Is this a bug?
<context-param>
<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
<param-value>0</param-value>
</context-param>
Load Test:
public static void main(String[] args) throws Exception {
for (int i = 0; i < 500; i++) {
URL myURL = new URL("http://localhost:8080/test");
URLConnection myURLConnection = myURL.openConnection();
myURLConnection.connect();
myURLConnection.getContent();
((HttpURLConnection)myURLConnection).disconnect();
}
}