summaryrefslogtreecommitdiffstats
path: root/web/attachments/299119-check_http.diff
blob: e745e36600373e37d6aa3bac0ca18b9b30cfd273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
*** check_http.c_old	2008-10-27 08:52:54.000000000 +0000
--- check_http.c	2008-10-27 08:54:15.000000000 +0000
***************
*** 968,974 ****
--- 968,978 ----
      else if (http_status >= 300) {
  
        if (onredirect == STATE_DEPENDENT)
+       {
+         microsec = socket_timeout - deltime(tv)/1.0e6;
+ 	alarm( microsec>1?microsec:1 );
          redir (header, status_line);
+       }
        else if (onredirect == STATE_UNKNOWN)
          printf (_("HTTP UNKNOWN"));
        else if (onredirect == STATE_OK)