diff --git a/content/docs/conn_lifecycle.md b/content/docs/conn_lifecycle.md index 6675111..ed5774f 100644 --- a/content/docs/conn_lifecycle.md +++ b/content/docs/conn_lifecycle.md @@ -1,13 +1,13 @@ --- title: Connection Lifecycle menu: docs_architecture -weight: 20 +weight: 1030 --- # Architecture overview -After Server has started listening to all sockets, [`Accept`][Accept] and [`Worker`][Worker] are two main loops responsible for processing incoming client connections. +After Server has started listening to all sockets, [`Accept`][Accept] and [`Worker`][Worker] are two main loops responsible for processing incoming client connections. Once connection accepted Application level protocol processing happens in a protocol specific [`Dispatcher`][Dispatcher] loop spawned from [`Worker`][Worker]. @@ -19,19 +19,19 @@ Once connection accepted Application level protocol processing happens in a prot ![](/img/diagrams/connection_accept.svg) -Most of code implementation resides in [`actix-server`][server] crate for struct [`Accept`][Accept]. +Most of code implementation resides in [`actix-server`][server] crate for struct [`Accept`][Accept]. ## Worker loop in more detail ![](/img/diagrams/connection_worker.svg) -Most of code implementation resides in [`actix-server`][server] crate for struct [`Worker`][Worker]. +Most of code implementation resides in [`actix-server`][server] crate for struct [`Worker`][Worker]. ## Request loop roughly ![](/img/diagrams/connection_request.svg) -Most of code implementation for request loop resides in [`actix-web`][web] and [`actix-http`][http] crates. +Most of code implementation for request loop resides in [`actix-web`][web] and [`actix-http`][http] crates. [server]: https://crates.io/crates/actix-server @@ -39,4 +39,4 @@ Most of code implementation for request loop resides in [`actix-web`][web] and [ [http]: https://crates.io/crates/actix-http [Accept]: https://github.com/actix/actix-net/blob/master/actix-server/src/accept.rs [Worker]: https://github.com/actix/actix-net/blob/master/actix-server/src/worker.rs -[Dispatcher]: https://github.com/actix/actix-web/blob/master/actix-http/src/h1/dispatcher.rs \ No newline at end of file +[Dispatcher]: https://github.com/actix/actix-web/blob/master/actix-http/src/h1/dispatcher.rs diff --git a/content/docs/http_server_init.md b/content/docs/http_server_init.md index 2f3cb4b..684ed97 100644 --- a/content/docs/http_server_init.md +++ b/content/docs/http_server_init.md @@ -1,7 +1,7 @@ --- title: Http Server Initialization menu: docs_architecture -weight: 10 +weight: 1020 --- ## Architecture overview diff --git a/content/docs/testing.md b/content/docs/testing.md index c59c923..4f0afa5 100644 --- a/content/docs/testing.md +++ b/content/docs/testing.md @@ -1,7 +1,7 @@ --- title: Testing menu: docs_advanced -weight: 210 +weight: 215 --- # Testing diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 9f3960c..34b092c 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -103,10 +103,18 @@
Edit on GitHub
- - {{ with .PrevInSection }}
Next up: {{ end }} - {{ with .PrevInSection }} {{ .Title }}
{{ end }} + + {{ if eq (len .Pages) 0 }} + {{ .Scratch.Set "Docs" .Parent.Pages.ByWeight }} + {{ else }} + {{ .Scratch.Set "Docs" .Pages.ByWeight }} + {{ end }} + + {{ .Scratch.Set "CurrentWeight" .Weight }} + + {{ range first 1 (where (.Scratch.Get "Docs") ".Weight" ">" (.Scratch.Get "CurrentWeight")) }} +
Next up: {{ .Title }}
+ {{ end }}