Qpid
  1. Qpid
  2. QPID-4615

Give C++ broker on unix ability to import a listening socket opened by parent process

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21
    • Component/s: None
    • Labels:
      None

      Description

      This is mostly useful for testing where you want to get a arbitrary port and keep it through a bunch of tests and still kill the broker meanwhile.

      This capability should supersede and deprecate the current "--port 0" hack.

        Activity

        Hide
        Andrew Stitcher added a comment -

        Checked in to trunk r1451446

        Show
        Andrew Stitcher added a comment - Checked in to trunk r1451446
        Hide
        Andrew Stitcher added a comment -

        This code can also be used as the base to implement systemd (or similar) support where systemd listens on a port and then starts us up automatically when the first connection come in.

        Show
        Andrew Stitcher added a comment - This code can also be used as the base to implement systemd (or similar) support where systemd listens on a port and then starts us up automatically when the first connection come in.
        Hide
        Andrew Stitcher added a comment -

        The change introduces a new command line argument --socket-fd <fd> (which can appear multiple times for multiple sockets) and will use the sockets already created and listening on those file descriptors.

        Show
        Andrew Stitcher added a comment - The change introduces a new command line argument --socket-fd <fd> (which can appear multiple times for multiple sockets) and will use the sockets already created and listening on those file descriptors.

          People

          • Assignee:
            Andrew Stitcher
            Reporter:
            Andrew Stitcher
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development