Lines Matching refs:requests
27 * @summary HttpURLConnection duplicates HTTP GET requests when used with multiple threads
33 * that requests are not being repeated (due to errors)
82 int requests;
84 MultiThreadTest(int port, int requests) throws Exception {
89 this.requests = requests;
98 for (int i=0; i<requests; i++) {
118 int requests = 20;
127 requests = Integer.parseInt (args[x+1]);
138 MultiThreadTest t = new MultiThreadTest(ss.getLocalPort(), requests);
157 if (reqs != threads*requests) {
158 throw new RuntimeException ("Expected "+ threads*requests+ " requests: got " +reqs);
227 * multiple http requests on same connection.
238 static int requests = 0;
243 return requests;
248 requests++;