Lines 411-425
public class HTTPHC4Impl extends HTTPHCAbstractImpl {
Link Here
|
411 |
res = resultProcessing(areFollowingRedirect, frameDepth, res); |
411 |
res = resultProcessing(areFollowingRedirect, frameDepth, res); |
412 |
|
412 |
|
413 |
} catch (IOException e) { |
413 |
} catch (IOException e) { |
414 |
res.sampleEnd(); |
|
|
415 |
log.debug("IOException", e); |
414 |
log.debug("IOException", e); |
416 |
// pick up headers if failed to execute the request |
415 |
if (res.getEndTime() == 0) { |
|
|
416 |
res.sampleEnd(); |
417 |
} |
418 |
// pick up headers if failed to execute the request |
419 |
if (res.getRequestHeaders() != null) { |
420 |
log.debug("Overwriting request old headers: " + res.getRequestHeaders()); |
421 |
} |
417 |
res.setRequestHeaders(getConnectionHeaders((HttpRequest) localContext.getAttribute(ExecutionContext.HTTP_REQUEST))); |
422 |
res.setRequestHeaders(getConnectionHeaders((HttpRequest) localContext.getAttribute(ExecutionContext.HTTP_REQUEST))); |
418 |
errorResult(e, res); |
423 |
errorResult(e, res); |
419 |
return res; |
424 |
return res; |
420 |
} catch (RuntimeException e) { |
425 |
} catch (RuntimeException e) { |
421 |
res.sampleEnd(); |
|
|
422 |
log.debug("RuntimeException", e); |
426 |
log.debug("RuntimeException", e); |
|
|
427 |
if (res.getEndTime() == 0) { |
428 |
res.sampleEnd(); |
429 |
} |
423 |
errorResult(e, res); |
430 |
errorResult(e, res); |
424 |
return res; |
431 |
return res; |
425 |
} finally { |
432 |
} finally { |