Project

General

Profile

URI_conditinal-max_keep_alive_requests.patch

moving the test after all config_patch_connection()s. - roques, 2009-01-27 02:57

View differences:

pkg-lighttpd/src/response.c 2009-01-24 13:59:52.000000000 -0400
226 226
			log_error_write(srv, __FILE__, __LINE__,  "sb", "URI-query    : ", con->uri.query);
227 227
		}
228 228

  
229
		/* disable keep-alive if requested */
230

  
231
		if (con->request_count > con->conf.max_keep_alive_requests) {
232
			con->keep_alive = 0;
233
		}
234

  
235 229

  
236 230
		/* build filename
237 231
		 *
......
293 287
			con->request.http_version = HTTP_VERSION_1_0;
294 288
		}
295 289

  
290
		/* disable keep-alive if requested */
291
		if (con->request_count > con->conf.max_keep_alive_requests) {
292
			con->keep_alive = 0;
293
		}
294

  
296 295
		switch(r = plugins_call_handle_uri_clean(srv, con)) {
297 296
		case HANDLER_GO_ON:
298 297
			break;