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

createConnection ignores connect_timeout option

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.13.0
    • Component/s: Node.js - Library
    • Labels:
      None

      Description

      connect_timeout and timeout options passed to createConnection are ignored during first connection attempt.

      Checking the source code, connect_timeout seems to be used only during reconnection retries, while timeout is applied to underlying socket only after the connect event.

      Probably it whould be better to pass the connection timeout directy to the net.createConnection call.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                fmalaguti Filippo Malaguti
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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