Jetty
  1. Jetty
  2. JETTY-496

Support inetd/xinetd through use of System.inheritedChannel()

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1.15.rc4
    • Component/s: HTTP, NIO
    • Labels:
      None
    • Number of attachments :
      5

      Description

      It would be very nice if Jetty would support use of inetd/xinetd for use in hosting environments. The scenario is that there are many virtual hosts, each with their own jetty server running as that user for security reasons, but that's a lot of system resource. Especially if some of them are rarely actually using the server.

      Some way to launch the server on demand would be ideal, and on Linux there is xinetd for just this purpose. Since Java 5 the API System.inheritedChannel() has existed just for this purpose.

      I have found no servlet containers with this feature. It would be really great to have it, and jetty looks like an ideal server for hosting environments due to its small size and effeciency.

      1. java-server.tar.gz
        1 kB
        Michael Brown
      2. jetty496_xinetdsupport-6.diff
        10 kB
        Athena Yao
      3. jetty496_xinetdsupport-7.diff
        11 kB
        Athena Yao
      4. jetty-496-inheritedchannel-6.diff
        7 kB
        Athena Yao
      5. jetty-496-inheritedchannel-7.diff
        7 kB
        Athena Yao

        Activity

        Hide
        Athena Yao added a comment -

        Separated it out into another class, and tweaked the other changes to point to this patch instead. Extended SelectChannelConnector for the new class.

        Show
        Athena Yao added a comment - Separated it out into another class, and tweaked the other changes to point to this patch instead. Extended SelectChannelConnector for the new class.
        Hide
        Michael Brown added a comment -

        Athena, your description was spot on.

        Show
        Michael Brown added a comment - Athena, your description was spot on.
        Hide
        Greg Wilkins added a comment -

        Jesse, can you check/test/commit this for athena.

        Thanks

        Show
        Greg Wilkins added a comment - Jesse, can you check/test/commit this for athena. Thanks
        Hide
        Greg Wilkins added a comment -

        Actually Jesse, I'm assigning this back to athena as I think she has earnt commit rights.
        She can commit etc.

        Show
        Greg Wilkins added a comment - Actually Jesse, I'm assigning this back to athena as I think she has earnt commit rights. She can commit etc.
        Hide
        Athena Yao added a comment -

        Applied the patches. Sorry, Michael, for the delay in getting this committed.

        Show
        Athena Yao added a comment - Applied the patches. Sorry, Michael, for the delay in getting this committed.

          People

          • Assignee:
            Athena Yao
            Reporter:
            Michael Brown
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: