summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 2f2460c6..72d0a2b6 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -894,9 +894,6 @@ check_http (void)
894#endif 894#endif
895 if (sd) close(sd); 895 if (sd) close(sd);
896 896
897 /* reset the alarm */
898 alarm (0);
899
900 /* Save check time */ 897 /* Save check time */
901 microsec = deltime (tv); 898 microsec = deltime (tv);
902 elapsed_time = (double)microsec / 1.0e6; 899 elapsed_time = (double)microsec / 1.0e6;
@@ -999,6 +996,9 @@ check_http (void)
999 996
1000 } /* end else (server_expect_yn) */ 997 } /* end else (server_expect_yn) */
1001 998
999 /* reset the alarm - must be called *after* redir or we'll never die on redirects! */
1000 alarm (0);
1001
1002 if (maximum_age >= 0) { 1002 if (maximum_age >= 0) {
1003 result = max_state_alt(check_document_dates(header, &msg), result); 1003 result = max_state_alt(check_document_dates(header, &msg), result);
1004 } 1004 }