private HttpRequest waitFor(HttpRequest request){
		synchronized (request) {
			while(true){
				try {
					if (!request.isReady()) request.wait();
					break;
				} catch (InterruptedException e) {
					continue;
				}
			}
		}
		return request;
	}