mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Disable virtual threads on http server
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
[app.rpc :as-alias rpc]
|
[app.rpc :as-alias rpc]
|
||||||
[app.rpc.doc :as-alias rpc.doc]
|
[app.rpc.doc :as-alias rpc.doc]
|
||||||
[app.setup :as-alias setup]
|
[app.setup :as-alias setup]
|
||||||
|
[app.worker :as wrk]
|
||||||
[integrant.core :as ig]
|
[integrant.core :as ig]
|
||||||
[promesa.exec :as px]
|
[promesa.exec :as px]
|
||||||
[reitit.core :as r]
|
[reitit.core :as r]
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
(assert (sm/check schema:server-params params)))
|
(assert (sm/check schema:server-params params)))
|
||||||
|
|
||||||
(defmethod ig/init-key ::server
|
(defmethod ig/init-key ::server
|
||||||
[_ {:keys [::handler ::router ::host ::port] :as cfg}]
|
[_ {:keys [::handler ::router ::host ::port ::wrk/executor] :as cfg}]
|
||||||
(l/info :hint "starting http server" :port port :host host)
|
(l/info :hint "starting http server" :port port :host host)
|
||||||
(let [options {:http/port port
|
(let [options {:http/port port
|
||||||
:http/host host
|
:http/host host
|
||||||
@@ -72,7 +73,7 @@
|
|||||||
:xnio/direct-buffers false
|
:xnio/direct-buffers false
|
||||||
:xnio/io-threads (or (::io-threads cfg)
|
:xnio/io-threads (or (::io-threads cfg)
|
||||||
(max 3 (px/get-available-processors)))
|
(max 3 (px/get-available-processors)))
|
||||||
:xnio/dispatch :virtual
|
:xnio/dispatch executor
|
||||||
:ring/compat :ring2
|
:ring/compat :ring2
|
||||||
:socket/backlog 4069}
|
:socket/backlog 4069}
|
||||||
|
|
||||||
|
|||||||
@@ -231,7 +231,8 @@
|
|||||||
::http/router (ig/ref ::http/router)
|
::http/router (ig/ref ::http/router)
|
||||||
::http/io-threads (cf/get :http-server-io-threads)
|
::http/io-threads (cf/get :http-server-io-threads)
|
||||||
::http/max-body-size (cf/get :http-server-max-body-size)
|
::http/max-body-size (cf/get :http-server-max-body-size)
|
||||||
::http/max-multipart-body-size (cf/get :http-server-max-multipart-body-size)}
|
::http/max-multipart-body-size (cf/get :http-server-max-multipart-body-size)
|
||||||
|
::wrk/executor (ig/ref ::wrk/executor)}
|
||||||
|
|
||||||
::ldap/provider
|
::ldap/provider
|
||||||
{:host (cf/get :ldap-host)
|
{:host (cf/get :ldap-host)
|
||||||
|
|||||||
Reference in New Issue
Block a user