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 #3572Descriptionhapi 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 Activitygr2m commented on Sep 14, 2017 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 kpdecker commented on Sep 14, 2017 Would still be possible to spin up another server instance in the same process, no? hueniverse commented on Sep 14, 2017 ContributorAuthor More actions @kpdecker yep. Just need to reuse the config. diegobfernandez commented on Sep 14, 2017 O agree 100% with @gr2m, I think the cognitive overload of multiple connections is not worth It. janl commented on Sep 14, 2017 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. bleupen commented on Sep 15, 2017 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 axpro commented on Sep 15, 2017 I find it useful. I love that you can load plugins per connection. One use case is private routes for cache invalidation. added a commit that references this issue on Sep 15, 2017This issue will close once commit 6447554 is merged into the 'master' branch.6447554 mattiloh commented on Sep 21, 2017 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)? hueniverse commented 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. lock commented on Jan 9, 2020 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. locked as resolved and limited conversation to collaborators on Jan 9, 2020
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|