This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-16
Channels
- # admin-announcements (3)
- # arachne (9)
- # beginners (10)
- # boot (56)
- # cider (4)
- # cljs-dev (5)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (146)
- # clojure-austin (9)
- # clojure-greece (3)
- # clojure-poland (14)
- # clojure-russia (1)
- # clojure-uk (19)
- # clojurescript (46)
- # cursive (16)
- # datomic (21)
- # emacs (38)
- # events (2)
- # flambo (1)
- # garden (3)
- # hoplon (41)
- # jobs (1)
- # keechma (87)
- # off-topic (2)
- # om (62)
- # om-next (4)
- # other-languages (7)
- # pedestal (6)
- # protorepl (1)
- # reagent (3)
- # rethinkdb (1)
- # ring-swagger (1)
- # rum (3)
- # spacemacs (2)
- # specter (12)
- # test200 (2)
- # untangled (12)
Hey folks, I’m running into a minor hurdle migrating a pedestal project to use component for system state
(defrecord Pedestal [service]
component/Lifecycle
(start [this]
(let [server (-> service http/create-server http/start)]
(assoc this ::server server)))
(stop [this]
(http/stop (::server this))
(dissoc this ::server)))
That’s my bog-standard component (http being io.pedestal.http). It starts and stops fine once, but fails to restart thereafter, claiming:
2016-05-16 14:56:10.754-0400 ERROR org.apache.coyote.http11.Http11NioProtocol Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"]
java.net.BindException: Address already in use
FWIW this seems to be specific to the tomcat server type, so plausibly is a bug
I kinda like the design, but the docs are laughable, and the registration process for interceptors seems haphazard