This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Graceful shutdown #30
Merged
+518
−120
Merged
Changes from 7 commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
c6bff7f
fix server address
nWacky ac68159
add SIGINT handler to ws_connection
nWacky e9482c3
add exit signals handlers to Room
nWacky b1b46fe
fix warnings
nWacky cc932cb
fix tests
nWacky b5ceb0f
format
nWacky 26fcfa1
minor refactor
alexlapa 86ff2af
implement graceful_shutdown actor
nWacky a7141e0
GracefulShutdown prototype implementantion
nWacky b0d908f
GracefulShutdown use async actor context
nWacky 6ae350c
implement then_all
nWacky 68c3802
change actix server signals that they wait, encapsulate ServerWrapper
nWacky eac51b1
remove actix web graceful shutdown
nWacky 5d89b3b
make then_all poll call recursive
nWacky 74cdb77
fix warnings
nWacky 08096fd
format
nWacky 04eeb57
send message to subscribe to graceful shutdown
nWacky 77c40eb
fix test warning
nWacky 8b997a8
add arbiter, derive debug in room
nWacky 07adfde
not use TimeoutShutdown
nWacky a356f7c
fix warnings
nWacky b64e99e
use standard tokio then
nWacky 2585a77
fix server address
nWacky ce8a13e
add SIGINT handler to ws_connection
nWacky 16fa33f
add exit signals handlers to Room
nWacky da86037
fix warnings
nWacky 8a780e3
minor refactor
alexlapa 598612a
implement graceful_shutdown actor
nWacky 5911f37
GracefulShutdown prototype implementantion
nWacky 3e7acaa
GracefulShutdown use async actor context
nWacky d5804de
implement then_all
nWacky 7cd76d0
change actix server signals that they wait, encapsulate ServerWrapper
nWacky e45ee35
remove actix web graceful shutdown
nWacky 7507733
make then_all poll call recursive
nWacky b9bbe70
fix warnings
nWacky 2582dfa
format
nWacky ec75369
send message to subscribe to graceful shutdown
nWacky 4ec3386
add arbiter, derive debug in room
nWacky 9ed91a9
not use TimeoutShutdown
nWacky e1a3cb1
fix warnings
nWacky eaa5fce
use standard tokio then
nWacky 4923bd9
rebase onto new master
nWacky b8fd13b
Merge remote-tracking branch 'origin/29-graceful-shutdown' into 29-gr…
nWacky 7b5066e
finish rebase
nWacky a99a778
spawn arbiter on new thread
nWacky 78d2338
format, fix warnings
nWacky 761ae5c
use start_in_arbiter
nWacky 6c091fb
change head
nWacky 809c5b5
change head
nWacky e80d356
Merge branch '29-graceful-shutdown' of https://github.com/instrumenti…
nWacky 127214f
fix error
nWacky cc6bbe5
fix logger panic when shutdown
nWacky 95e6e82
fix logger panic when shutdown, use shutdown_timeout from config
nWacky 48459b0
format, fix warnings
nWacky cf889a6
start implementing future-based graceful shutdown
nWacky 6986de0
implement future based graceful shutdown
nWacky ff2ac57
fix warnings
nWacky 5c06e70
format
nWacky b07c401
fix bugs
nWacky f8cd7f9
fix sigint, remove non-unix shutdown
nWacky 3733b1f
add sigterm
nWacky 5238542
start implementing futures in shutdown message
nWacky 18c0a2c
fix
alexlapa 9b6f9a1
use global logger struct, local lazy_static import
nWacky 3beb989
subscribe server in server::run
nWacky 6a4d32d
cleanup, exit process properly
nWacky 397f09e
start fixing bug
nWacky b6bae60
fix bug
nWacky f5720b3
cleanup
nWacky 237adb5
fix warnings
nWacky 0fe61f7
start implementing shutdown actor
4240184
implement shutdown actor
nWacky 4fca3b0
use actor context for main shutdown future, use tokio timeout
nWacky dc5efb8
implement unsubscribe
nWacky 04ac8e7
add todos
nWacky 6af4aa2
start implementing hashmap
nWacky 61ace89
start constructing big future
nWacky 2044548
use unit type as error
nWacky 541ff71
replace hashmap with hashset
nWacky 5156358
inject stream into actor context
nWacky cd6d5f0
add room state machine
nWacky 25f5c33
return future from graceful shutdown
nWacky b474ea8
fix warnings
nWacky aaa5170
start implementing async CloseRoom{}
nWacky 3560b5c
start implementing async drop_connections
nWacky 5ce83c3
implement async drop_connections
nWacky 67c26df
fix bug
nWacky bf9bf3f
fix warnings
nWacky 0b9d86f
format imports, change room state
nWacky 6f7190e
format imports
nWacky 7eaf698
format imports
nWacky 8161d35
fix
nWacky e913753
refactor shutdown and config
nWacky 18e5e73
refactor messages subscribe/unsubscribe
nWacky 60a9029
replace u8 with priority
nWacky ffc1f5b
cfg not unix is a warning
nWacky 46a7278
cfg not unix is a warning
nWacky 000f241
implement get_drop_fut
nWacky 2863244
Merge remote-tracking branch 'origin/29-graceful-shutdown' into 29-gr…
nWacky 959a4d4
add description
nWacky 9a9ca13
start implementing better signals stream
nWacky bb3587e
move CloseRoom to a function in Room, fix warnings
nWacky ec2a4dc
start using async actor context
nWacky f29e47a
refactor
nWacky 0af073f
format, lint
nWacky 36fdcf7
format
nWacky 8ada2fd
Merge branch 'master' into 29-graceful-shutdown
tyranron f060d62
Correct conf implementation
tyranron 8bf9fec
Refactor shutdown service implementation
tyranron ffc0534
Refactor shutdown handling
tyranron bded4b5
fix docs
alexlapa e411747
Merge branch 'master' into 29-graceful-shutdown
alexlapa 6c7cada
fmt && update locks
alexlapa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: 2 | ||
version: "2" | ||
|
||
services: | ||
coturn: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nWacky ,
Тут кастомный Debug не нужен, derive нормально отрабатывает.