Home | History | Annotate | Download | only in http

Lines Matching refs:req

159         Request req = null;
191 req = mRequestFeeder.getRequest(mHost);
193 req = firstRequest;
196 if (req == null) {
200 req.setConnection(this);
203 if (req.mCancelled) {
206 + req);
207 req.complete();
219 if (!openHttpConnection(req)) {
229 req.mEventHandler.certificate(mCertificate);
235 req.sendRequest(mHttpClientConnection);
247 if (httpFailure(req, error, exception) &&
248 !req.mCancelled) {
251 pipe.addLast(req);
259 pipe.addLast(req);
278 req = (Request)pipe.removeFirst();
280 "processRequests() reading " + req);
283 req.readResponse(mHttpClientConnection);
295 if (httpFailure(req, error, exception) &&
296 !req.mCancelled) {
299 req.reset();
300 pipe.addFirst(req);
349 private boolean openHttpConnection(Request req) {
358 mHttpClientConnection = openConnection(req);
367 req.mFailCount = RETRY_REQUEST_LIMIT;
377 req.mFailCount = RETRY_REQUEST_LIMIT;
382 req.mFailCount = RETRY_REQUEST_LIMIT;
388 req.mFailCount = RETRY_REQUEST_LIMIT;
407 if (req.mFailCount < RETRY_REQUEST_LIMIT) {
409 mRequestFeeder.requeueRequest(req);
410 req.mFailCount++;
412 httpFailure(req, error, exception);
428 private boolean httpFailure(Request req, int errorId, Exception e) {
433 "httpFailure() ******* " + e + " count " + req.mFailCount +
434 " " + mHost + " " + req.getUri());
436 if (++req.mFailCount >= RETRY_REQUEST_LIMIT) {
445 req.mEventHandler.error(errorId, error);
446 req.complete();
506 abstract AndroidHttpClientConnection openConnection(Request req) throws IOException;