1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 21:10:37 +02:00
Commit Graph

161 Commits

Author SHA1 Message Date
3859e91799 Use named type for WorkerState::Restarting and Shutdown (#317) 2021-04-04 21:53:19 +01:00
8aade720ed Refactor WorkerState::Shutdown (#310) 2021-04-04 20:34:52 +01:00
8079c50ddb Add ServerWorker::restart_service method (#314)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-04 13:22:34 +01:00
05689b86d9 Remove Option wrapper for CounterGuard (#313) 2021-04-04 10:53:06 +01:00
fd3e5fba02 Refactor actix_server WorkerState::Restarting enum variant. (#306)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-03 19:40:12 +01:00
d8889c63ef Do not do double check on connection num when entering graceful shutdown (#309) 2021-04-02 12:49:12 +01:00
fdac52aa11 Refactor Worker::shutdown mehtod (#308) 2021-04-02 12:22:05 +01:00
2c5c9167a5 Fix bug where timed out socket would register itself when server in b… (#302)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-01 08:25:24 +01:00
ee3a548a85 Refactor Accept::accept_one (#303) 2021-04-01 07:45:49 +01:00
f21eaa954f Reduce size of Conn by removing unused addr field (#304) 2021-04-01 06:55:33 +01:00
26a5af70cb reduce branch in Accept::accept method (#300) 2021-03-29 08:19:37 +01:00
bb27bac216 Add native tls support for actix_tls::connect module (#295)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-03-27 00:20:17 +00:00
f9262dbec0 prevent large shutdown timeout from panicking
closes #298
2021-03-26 23:37:01 +00:00
841c611233 doc nits 2021-02-24 01:39:02 +00:00
ebb9cd055f use static dispatch on signal handling. reduce allocation (#272) 2021-02-06 03:38:11 +00:00
7f0eddd794 add blocking thread customize (#265) 2021-02-04 15:01:51 +00:00
db3385e865 retry on EINTR in accept loop (#264)
Co-authored-by: lishuo <lishuo.03@bytedance.com>
2021-02-04 10:20:37 +00:00
2fa60b07ae prevent arbiter leaks by waiting for registration 2021-01-31 04:41:28 +00:00
b75254403a remove builder and introduce worker handle (#257) 2021-01-31 03:34:07 +00:00
1b35ff8ee6 express spawn fn as spawn fut (#256) 2021-01-29 15:16:30 +00:00
6b86b5efc5 rename arbiter to worker (#254) 2021-01-29 04:08:14 +00:00
ba39c8436d remove tokio runners (#253) 2021-01-29 02:21:06 +00:00
cff9deb729 attribute nits 2021-01-26 09:45:43 +00:00
636cef8868 service trait takes shared self reference (#247) 2021-01-23 03:06:22 +00:00
f751cf5acb use convert err on forward_ready! (#246) 2021-01-09 14:13:16 +00:00
b5eefb4d42 merge actix-testing into actix-server (#242) 2020-12-29 21:20:24 +00:00
b7202db8fd update actix-server and actix-testing to tokio 1.0 (#239) 2020-12-28 23:44:53 +00:00
3ab8c3eb69 service trait takes request type parameter (#232) 2020-12-27 04:28:00 +00:00
02a902068f Refactor LocalWaker (#224) 2020-12-13 19:26:57 +00:00
049795662f remove ServerMessage type. remove one unused InternalServiceFactory impl (#225) 2020-12-13 00:46:32 +00:00
4e43216b99 standardise compiler lints across all crates (#226) 2020-12-12 23:24:00 +00:00
93889776c4 prevent double registration of sockets when backpressure is resolved (#223) 2020-12-12 17:19:20 +00:00
89e56cf661 Notify about paused accept loop (#215) 2020-11-29 15:30:13 +00:00
fb0aa02b3c move and update server+tls examples (#190) 2020-09-13 10:12:07 +01:00
88d99ac89c Fix clippy errors. (#187) 2020-09-06 10:41:42 +01:00
fecdfcd8d4 assert workers greater than zero (#167) 2020-08-18 16:44:22 +01:00
fb098536ee bump MSRV to 1.42 (#180) 2020-08-17 15:37:57 +01:00
abbc5f715f server: Bump up to 1.0.3 2020-05-19 10:23:17 +09:00
8218a098e8 server: Replace net2 crate with socket2 2020-05-19 08:17:44 +09:00
c0482e2532 Remove unnecessary clone usage 2020-04-20 08:02:08 +09:00
f5b07053fc actix-server: Minimize futures-* dependencies 2020-03-12 07:13:31 +09:00
83320efa31 Avoid error by register() on Windows (#103) 2020-02-26 18:40:31 +09:00
fa25e30427 Remove single import 2020-02-25 18:41:15 +09:00
d5a6c83207 Suppress/fix clippy warnings 2020-01-29 12:05:55 +09:00
e5b5df1261 Optimize vector fill in builder. (#89)
* optimize vector fill
2020-01-22 06:35:22 +09:00
1918c8d4f8 rename .run to .start() 2019-12-29 10:07:46 +06:00
119027f822 fmt 2019-12-25 15:10:13 +04:00
1ad0bbfb7f rename fn service helpers 2019-12-08 19:05:05 +06:00
fa48ddcfa1 fix non unix signals support 2019-12-06 14:06:14 +06:00
b18fbc98d5 move rustls and nativetls acceptor services to actix-tls 2019-12-05 20:52:37 +06:00