This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-25
Channels
- # announcements (1)
- # babashka (15)
- # biff (15)
- # calva (9)
- # cherry (18)
- # cider (43)
- # cljs-dev (1)
- # cljsrn (10)
- # clojure (14)
- # clojure-europe (47)
- # clojurescript (29)
- # clr (5)
- # conjure (1)
- # core-logic (17)
- # datomic (8)
- # emacs (22)
- # fulcro (3)
- # gratitude (1)
- # hoplon (23)
- # humor (1)
- # hyperfiddle (34)
- # jobs (1)
- # kaocha (1)
- # malli (3)
- # nrepl (4)
- # off-topic (18)
- # pathom (12)
- # pedestal (1)
- # polylith (1)
- # portal (17)
- # practicalli (1)
- # re-frame (19)
- # reitit (8)
- # releases (1)
- # rewrite-clj (4)
- # shadow-cljs (15)
- # sql (23)
- # tools-build (4)
I am attempting to gracefully shut down the Pedestal server, and I have implemented a shutdown hook as shown below:
(.addShutdownHook (Runtime/getRuntime)
(Thread. (fn []
(timbre/warn "Shutting down the server")
(http/stop @server))))
I get below logs in the terminal when I press Ctrl + C
2023-07-25T13:13:00.471Z worf.local WARN [unifize.system:194] - Shutting down the server
2023-07-25T13:13:00.477Z worf.local INFO [org.eclipse.jetty.server.AbstractConnector:381] - Stopped ServerConnector@3b19d8ba{HTTP/1.1, (http/1.1, h2c)}{localhost:3592}
2023-07-25T13:13:00.479Z worf.local INFO [org.eclipse.jetty.server.handler.ContextHandler:1153] - Stopped o.e.j.s.ServletContextHandler@58bb05a9{/,null,STOPPED}
Upon initiating the shutdown, Jetty terminates active HTTP connections with the client. Is this the intended behaviour, or am I missing something?