Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20547

linkcheck.php / ezhttptool: hardcoded connect timeout values

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • Customer request
    • 4.7.0
    • Misc
    • None
    • eZ Publish 4.6

    Description

      ezhttptool, used by the linkcheck.php cronjob, for example, uses hardcoded connection timeout values.

      /lib/ezutils/classes/ezhttptool.php
      @@814
                  if ( $justCheckURL )
                  {
                      curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 2 );
                      curl_setopt( $ch, CURLOPT_TIMEOUT, 15 );
                      curl_setopt( $ch, CURLOPT_FAILONERROR, 1 );
                      curl_setopt( $ch, CURLOPT_NOBODY, 1 );
                  }
      

      When checking external urls, potentially slow, the possibility to adjust the timeout (by ini setting, for example) would be useful.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: