Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4845

PHP's TCurlClient ignores timeout values smaller that 1 second

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.13.0
    • PHP - Library
    • None
    • PHP 7.*

    Description

      Presently, if you specify a fractional timeout (e.g. 0.2) with setTimeoutSecs(), it is ignored and the request is allowed to take an arbitrary amount of time.

       

      Specifying integer timeouts works as expected (e.g. 1, 2, or more seconds).

       

      This happens because this line uses CURLOPT_TIMEOUT instead of CURLOPT_TIMEOUT_MS.

       

      I have a patch I'll submit after creating this  ticket.

      Attachments

        Issue Links

          Activity

            People

              jking3 James E. King III
              jeremy128 Jeremy Mikkola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m