Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-274

Allow for setting of custom timeout for readtcp()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Built-in functions
    • Labels:
      None

      Description

      The readtcp() function currently uses the default network timeout value set by default_timeout. It seems it is not possible to set the timeout for readtcp() without having it affect all network connections in the policy. This limits the usefulness of readtcp() for testing whether a server or service is available. Ideally it should be possible to set a custom timeout for readctp() so that, for example, a low timeout value can be set for testing a connection in a way that won't dramatically slow down execution of policies.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ianwestcott Ian Westcott
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel