GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove support for multiple connection in a single server · Issue #3572 · hapijs/hapi

Remove support for multiple connection in a single server #3572

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove support for multiple connection in a single server#3572
Copy link
Assignees
hueniverse
Labels
breaking changesChange that can breaking existing code
Milestone
17.0.0

Description

@hueniverse
hueniverse
opened on Sep 14, 2017
Issue body actions

hapi is (probably) the only framework that supports adding multiple ports to a single server instance. This was done for two use cases:

  • Support an internal process admin channel (serve normal API over port 8000 and allow internal admin access on port 8001)
  • Run multiple services in a single process for testing purposes (run a single server that have both your "login" and "billing" APIs, each on a different port)

At this point, external tools would do as good a job at allowing you to manage multiple servers, each with a single port.

Reacted by Greg Allen, Gregor Martynus, Troy Whiteley, Marian Gibala, Karl-Heinz Wallwitz, David Luzar, Nilesh Namdeo Mali, Adam Bretz, Wes Tyler, Claas Lange and 7 more

Activity

  1. hueniverse
    added
    breaking changesChange that can breaking existing code
    on Sep 14, 2017
  2. hueniverse
    added this to the 17.0.0 milestone on Sep 14, 2017
  3. gr2m commented on Sep 14, 2017

    @gr2m
    gr2m
    on Sep 14, 2017
    More actions

    I’m working heavily with hapi for several years now, I can’t recall a single situation where we had depended on the multiple connections. On the other side, I do recall it being a bit confusing when starting to work with hapi. If you were to remove this feature, I think the onboarding would be much easer. Big +1 from me 💯

    Reacted by Karl-Heinz Wallwitz, Kevin Hodges, Claas Lange, Alexander Alimovs, Rubén Norte and const-z
  4. kpdecker commented on Sep 14, 2017

    @kpdecker
    kpdecker
    on Sep 14, 2017
    Contributor
    More actions

    Would still be possible to spin up another server instance in the same process, no?

  5. hueniverse commented on Sep 14, 2017

    @hueniverse
    hueniverse
    on Sep 14, 2017
    ContributorAuthor
    More actions

    @kpdecker yep. Just need to reuse the config.

  6. diegobfernandez commented on Sep 14, 2017

    @diegobfernandez
    diegobfernandez
    on Sep 14, 2017
    More actions

    O agree 100% with @gr2m, I think the cognitive overload of multiple connections is not worth It.

  7. janl commented on Sep 14, 2017

    @janl
    janl
    on Sep 14, 2017
    More actions

    I’ve used this before and found it handy for the reasons outlined, but the workaround in #3572 (comment) would be more than acceptable.

    I too agree that the initial setup simplification alone is worth removing that feature.

  8. hueniverse
    self-assigned this
    on Sep 14, 2017
  9. bleupen commented on Sep 15, 2017

    @bleupen
    bleupen
    on Sep 15, 2017
    More actions

    We use this feature all the time to redirect http requests on port 80 to use ssl

    Reacted by Ștefan-Gabriel Muscalu, Chiru and Alex Vechkanov
  10. axpro commented on Sep 15, 2017

    @axpro
    axpro
    on Sep 15, 2017
    More actions

    I find it useful. I love that you can load plugins per connection. One use case is private routes for cache invalidation.

  11. hueniverse
    added a commit that references this issue on Sep 15, 2017

    Drop domains, multi-connections. Closes #3572. Closes #3573. Closes #…

    This issue will close once commit 6447554 is merged into the 'master' branch.
    6447554
  12. mattiloh commented on Sep 21, 2017

    @mattiloh
    mattiloh
    on Sep 21, 2017
    Contributor
    More actions

    I like the possibility to load plugins for specific connections, too. Is there any other way to restrict the effect of a plugin to certain routes or path-prefixes (e.g. a plugin should only affect /admin/* routes)?

  13. hueniverse commented on Sep 21, 2017

    @hueniverse
    hueniverse
    on Sep 21, 2017
    ContributorAuthor
    More actions

    @Mattii You just just losing the ability to select connections because there is always just one. The rest of the plugin options remain.

  14. hueniverse
    closed this as completedin 6447554on Oct 6, 2017
  15. hapijs
    deleted a comment from fernandorossato on Jan 19, 2018
  16. lock commented on Jan 9, 2020

    @lock
    lockBot
    on Jan 9, 2020
    More actions

    This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

  17. lock
    locked as resolved and limited conversation to collaborators on Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @hueniverse
    hueniverse

Labels

breaking changesChange that can breaking existing code

Type

No type

Projects

No projects

    Milestone

    • 17.0.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.