Rob Ede
76338a5822
prepare server release 2.0.0-beta.5
2021-04-20 05:16:32 +01:00
Rob Ede
978e4f25fb
prepare actix-utils release 3.0.0 ( #342 )
2021-04-17 02:00:36 +01:00
Rob Ede
1c4e965366
prepare service release 2.0.0 ( #339 )
2021-04-16 15:18:53 +01:00
fakeshadow
2435520e67
Remove/restart worker test ( #341 )
2021-04-16 14:40:21 +01:00
fakeshadow
19468feef8
Fix memory ordering of WorkerAvailability ( #340 )
2021-04-16 11:20:08 +01:00
fakeshadow
bd48908792
Return worker index in WakerInterest::WorkerAvailable ( #337 )
2021-04-16 05:59:10 +01:00
fakeshadow
20c2da17ed
Fix worker_avail ( #336 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-16 03:20:02 +01:00
fakeshadow
aeb81ad3fd
Fix worker are notified to stop with non_graceful shutdown ( #333 )
2021-04-16 00:54:15 +01:00
Rob Ede
47fba25d67
remove pipeline from public api ( #335 )
2021-04-16 00:00:02 +01:00
fakeshadow
8e98d9168c
add test for restart worker thread ( #328 )
2021-04-15 18:49:43 +01:00
fakeshadow
3c1f57706a
Make ServerWorker drop stop Arbiter it runs on ( #334 )
2021-04-15 13:31:03 +01:00
fakeshadow
d49ecf7203
Fix bug where backpressure happen too early ( #332 )
2021-04-14 14:48:05 +01:00
fakeshadow
e0fb67f646
Reduce ServerWorker size ( #321 )
2021-04-13 01:12:59 +01:00
fakeshadow
ddce2d6d12
Reduce cfg flags in actix_server::socket ( #325 )
2021-04-10 16:05:50 +01:00
fakeshadow
0a11cf5cba
Separate WorkerHandle to two parts ( #323 )
2021-04-10 01:03:28 +01:00
Rob Ede
859f45868d
Revert "do no drain backlog on backpressure" ( #324 )
...
This reverts commit d4829b046d
.
2021-04-09 21:04:41 +01:00
fakeshadow
d4829b046d
do no drain backlog on backpressure ( #322 )
2021-04-08 23:15:10 +01:00
fakeshadow
5961eb892e
Fix bug where worker service restart could skip failing services and not being able to restart multiple services ( #318 )
2021-04-05 20:39:05 +01:00
fakeshadow
995efcf427
Fix bug where paused Accept would register timed out sockets ( #312 )
2021-04-05 13:38:41 +01:00
fakeshadow
f1573931dd
Remove MAX_CONN ( #316 )
2021-04-04 23:00:12 +01:00
fakeshadow
3859e91799
Use named type for WorkerState::Restarting and Shutdown ( #317 )
2021-04-04 21:53:19 +01:00
fakeshadow
8aade720ed
Refactor WorkerState::Shutdown ( #310 )
2021-04-04 20:34:52 +01:00
fakeshadow
8079c50ddb
Add ServerWorker::restart_service method ( #314 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-04 13:22:34 +01:00
fakeshadow
05689b86d9
Remove Option wrapper for CounterGuard ( #313 )
2021-04-04 10:53:06 +01:00
fakeshadow
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
fakeshadow
39d1f282f7
add test for max concurrent connections ( #311 )
2021-04-03 19:01:00 +01:00
fakeshadow
d8889c63ef
Do not do double check on connection num when entering graceful shutdown ( #309 )
2021-04-02 12:49:12 +01:00
fakeshadow
fdac52aa11
Refactor Worker::shutdown mehtod ( #308 )
2021-04-02 12:22:05 +01:00
Rob Ede
6d66cfb06a
prepare utils release 3.0.0-beta.4
2021-04-01 13:57:08 +01:00
Rob Ede
b068ea16f8
prepare server release 2.0.0-beta.4
2021-04-01 09:36:07 +01:00
fakeshadow
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
fakeshadow
ee3a548a85
Refactor Accept::accept_one ( #303 )
2021-04-01 07:45:49 +01:00
fakeshadow
f21eaa954f
Reduce size of Conn by removing unused addr field ( #304 )
2021-04-01 06:55:33 +01:00
Rob Ede
8becb0db70
refactor crates for better api stability ( #301 )
2021-03-30 13:39:10 +01:00
fakeshadow
26a5af70cb
reduce branch in Accept::accept method ( #300 )
2021-03-29 08:19:37 +01:00
fakeshadow
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
Rob Ede
f9262dbec0
prevent large shutdown timeout from panicking
...
closes #298
2021-03-26 23:37:01 +00:00
Rob Ede
746cc2ab89
prepare service release 2.0.0-beta.5
2021-03-15 23:09:34 +00:00
Rob Ede
06ddad0051
prepare rt and tls releases ( #287 )
2021-02-25 11:50:24 +00:00
fakeshadow
fa8ded3a34
bump tokio version for actix-server
2021-02-24 15:54:28 +08:00
Rob Ede
841c611233
doc nits
2021-02-24 01:39:02 +00:00
Rob Ede
5f80d85010
fix server version
2021-02-06 19:34:58 +00:00
Rob Ede
16ba77c4c8
prepare next set of betas ( #273 )
2021-02-06 19:24:52 +00:00
fakeshadow
ebb9cd055f
use static dispatch on signal handling. reduce allocation ( #272 )
2021-02-06 03:38:11 +00:00
Rob Ede
a77b70aed2
prepare service 2.0.0-beta.4 release ( #269 )
2021-02-04 20:44:13 +00:00
fakeshadow
7f0eddd794
add blocking thread customize ( #265 )
2021-02-04 15:01:51 +00:00
shuo
db3385e865
retry on EINTR in accept loop ( #264 )
...
Co-authored-by: lishuo <lishuo.03@bytedance.com>
2021-02-04 10:20:37 +00:00
Rob Ede
4ec358575e
prepare actix-rt v2.0.0 release ( #262 )
2021-02-03 10:25:31 +00:00
Rob Ede
66bd5bf4a2
prepare macros v0.2.0 release ( #261 )
2021-02-02 02:07:58 +00:00
Rob Ede
2fa60b07ae
prevent arbiter leaks by waiting for registration
2021-01-31 04:41:28 +00:00
Rob Ede
b75254403a
remove builder and introduce worker handle ( #257 )
2021-01-31 03:34:07 +00:00
Rob Ede
1b35ff8ee6
express spawn fn as spawn fut ( #256 )
2021-01-29 15:16:30 +00:00
Rob Ede
6b86b5efc5
rename arbiter to worker ( #254 )
2021-01-29 04:08:14 +00:00
Rob Ede
ba39c8436d
remove tokio runners ( #253 )
2021-01-29 02:21:06 +00:00
Rob Ede
cff9deb729
attribute nits
2021-01-26 09:45:43 +00:00
fakeshadow
636cef8868
service trait takes shared self reference ( #247 )
2021-01-23 03:06:22 +00:00
fakeshadow
874e5f2e50
change default name resolver and allow custom resolvers ( #248 )
2021-01-23 01:33:50 +00:00
Rob Ede
6112a47529
update local deps
2021-01-09 15:19:16 +00:00
Rob Ede
f751cf5acb
use convert err on forward_ready! ( #246 )
2021-01-09 14:13:16 +00:00
Rob Ede
5285656bdc
prepare next beta releases
2021-01-03 04:39:37 +00:00
fakeshadow
b5eefb4d42
merge actix-testing into actix-server ( #242 )
2020-12-29 21:20:24 +00:00
Rob Ede
ef83647ac9
prepare testing beta release
2020-12-28 23:54:21 +00:00
Rob Ede
98a17081b8
prepare server beta release
2020-12-28 23:50:00 +00:00
fakeshadow
b7202db8fd
update actix-server and actix-testing to tokio 1.0 ( #239 )
2020-12-28 23:44:53 +00:00
Rob Ede
3ab8c3eb69
service trait takes request type parameter ( #232 )
2020-12-27 04:28:00 +00:00
fakeshadow
518bf3f6a6
remove RUNNING Q PENDING thread locals from actix-rt ( #207 )
2020-12-26 23:26:02 +00:00
Juan Aguilar
02a902068f
Refactor LocalWaker ( #224 )
2020-12-13 19:26:57 +00:00
fakeshadow
049795662f
remove ServerMessage type. remove one unused InternalServiceFactory impl ( #225 )
2020-12-13 00:46:32 +00:00
Rob Ede
4e43216b99
standardise compiler lints across all crates ( #226 )
2020-12-12 23:24:00 +00:00
Rob Ede
93889776c4
prevent double registration of sockets when backpressure is resolved ( #223 )
2020-12-12 17:19:20 +00:00
Ivan Babrou
89e56cf661
Notify about paused accept loop ( #215 )
2020-11-29 15:30:13 +00:00
Rob Ede
fb0aa02b3c
move and update server+tls examples ( #190 )
2020-09-13 10:12:07 +01:00
Rob Ede
681eeb497d
prepare server release 1.0.4 ( #188 )
2020-09-12 15:28:17 +01:00
Robert Gabriel Jakabosky
88d99ac89c
Fix clippy errors. ( #187 )
2020-09-06 10:41:42 +01:00
Rob Ede
d28687d0d7
promote codec/utils out of beta ( #184 )
2020-08-24 09:18:37 +01:00
Rob Ede
27c6be9881
remove unused type parameter from Framed::replace_codec ( #183 )
2020-08-20 00:30:26 +01:00
Adrian Wechner
fecdfcd8d4
assert workers greater than zero ( #167 )
2020-08-18 16:44:22 +01:00
Rob Ede
fb098536ee
bump MSRV to 1.42 ( #180 )
2020-08-17 15:37:57 +01:00
Yuki Okushi
10b4c30a06
Use OR
instead of deprecated /
in license field ( #155 )
2020-07-14 11:11:30 +01:00
Yuki Okushi
abbc5f715f
server: Bump up to 1.0.3
2020-05-19 10:23:17 +09:00
Yuki Okushi
8218a098e8
server: Replace net2
crate with socket2
2020-05-19 08:17:44 +09:00
Yuki Okushi
c0482e2532
Remove unnecessary clone usage
2020-04-20 08:02:08 +09:00
Yuki Okushi
f5b07053fc
actix-server: Minimize futures-*
dependencies
2020-03-12 07:13:31 +09:00
Yuki Okushi
98f0290f65
actix-server: Bump up to 1.0.2
2020-02-26 19:48:52 +09:00
Yuki Okushi
b8f66f5e7f
Update changelog
2020-02-26 19:48:41 +09:00
Yuki Okushi
dd59ee498e
Add FIXME comment
2020-02-26 19:48:27 +09:00
Dany Laporte
83320efa31
Avoid error by register()
on Windows ( #103 )
2020-02-26 18:40:31 +09:00
Yuki Okushi
fa25e30427
Remove single import
2020-02-25 18:41:15 +09:00
Yuki Okushi
043057ecbd
Fix import scopes
2020-02-01 23:32:08 +09:00
Yuki Okushi
d5a6c83207
Suppress/fix clippy warnings
2020-01-29 12:05:55 +09:00
zero-systems
e5b5df1261
Optimize vector fill in builder. ( #89 )
...
* optimize vector fill
2020-01-22 06:35:22 +09:00
Nikolay Kim
1918c8d4f8
rename .run to .start()
2019-12-29 10:07:46 +06:00
Nikolay Kim
119027f822
fmt
2019-12-25 15:10:13 +04:00
Nikolay Kim
9957f28137
prepare actix-testing release
2019-12-11 14:49:26 +06:00
Nikolay Kim
60bfa1bfb1
prepare actix-server release
2019-12-11 14:43:26 +06:00
Nikolay Kim
2e5e69c9ba
Simplify oneshot and mpsc implementations
2019-12-11 11:28:09 +06:00
Nikolay Kim
e315cf2893
prep actix-rt release; update deps
2019-12-11 10:34:50 +06:00
Nikolay Kim
25012d290a
update actix-codec dependencies
2019-12-11 10:23:01 +06:00
Nikolay Kim
d47f1fb730
prepare actix-service release
2019-12-08 19:49:35 +06:00
Nikolay Kim
1ad0bbfb7f
rename fn service helpers
2019-12-08 19:05:05 +06:00
Nikolay Kim
cbdbc05dbd
update tokio verion and prep alpha3 release
2019-12-07 09:57:43 +06:00
Nikolay Kim
fa48ddcfa1
fix non unix signals support
2019-12-06 14:06:14 +06:00
Nikolay Kim
b18fbc98d5
move rustls and nativetls acceptor services to actix-tls
2019-12-05 20:52:37 +06:00
Nikolay Kim
3a858feaec
migrate to tokio 0.2.2
2019-12-05 16:40:24 +06:00
Nikolay Kim
6f41b80cb4
optimize service combinators memory layout
2019-12-05 12:37:26 +06:00
Nikolay Kim
21dcc22e53
refactor server configurations
2019-12-04 21:35:27 +06:00
Nikolay Kim
de84663768
fix initial worker service state
2019-12-04 15:52:49 +06:00
Nikolay Kim
c4e2051327
refactor server worker
2019-12-04 15:12:02 +06:00
Nikolay Kim
cbc5da8625
update changes
2019-12-03 14:10:36 +06:00
Aaron Housh
2756bedc3d
Fix for non Unix OS ( #69 )
2019-12-03 10:07:54 +06:00
Nikolay Kim
9f575418c1
clippy warnings
2019-12-02 22:30:09 +06:00
Nikolay Kim
9ed35cca7a
use owned value for service factory config
2019-12-02 21:27:48 +06:00
Nikolay Kim
a08b1eba87
update tests
2019-12-02 11:43:52 +06:00
Nikolay Kim
9fbe6a1f6d
refactor server configuration and tls support
2019-12-02 11:30:27 +06:00
Nikolay Kim
a02064592b
disable rustls
2019-11-27 21:03:26 +06:00
Nikolay Kim
c254bb978c
allow to wait on Server until server stops; restore signal handling
2019-11-26 17:03:52 +06:00
Nikolay Kim
009f8e2e7c
allow to wait server exit
2019-11-26 16:33:45 +06:00
Nikolay Kim
52d03fa18c
use actix deps instead of tokio
2019-11-26 08:26:22 +06:00
Nikolay Kim
5265714f68
prep alpha.1 release
2019-11-21 19:58:55 +06:00
Nikolay Kim
ae4394c0f2
fix uds server support
2019-11-21 00:35:44 +06:00
Nikolay Kim
d3c5518646
fix rustls acceptor
2019-11-19 18:54:36 +06:00
Nikolay Kim
3bf83c1d98
cleanup Unpin constraint; simplify Framed impl
2019-11-19 14:51:40 +06:00
Nikolay Kim
1354946460
remove pin-project; update Unpin consrtaint
2019-11-18 18:28:54 +06:00
Nikolay Kim
7404d82a9b
use concrete types
2019-11-18 14:30:04 +06:00
Yuki Okushi
be7904fd57
Fix code style ( #65 )
...
* Fix clippy warnings
* cargo fmt
* Remove redundant lifetime
2019-11-15 00:28:29 +09:00
Nikolay Kim
13049b80ca
Migrate actix-net to std::future ( #64 )
...
* Migrate actix-codec, actix-rt, and actix-threadpool to std::future
* update to latest tokio alpha and futures-rs
* Migrate actix-service to std::future,
This is a squash of ~8 commits, since it included a lot of experimentation. To see the commits,
look into the semtexzv/std-future-service-tmp branch.
* update futures-rs and tokio
* Migrate actix-threadpool to std::future (#59 )
* Migrate actix-threadpool to std::future
* Cosmetic refactor
- turn log::error! into log::warn! as it doesn't throw any error
- add Clone and Copy impls for Cancelled making it cheap to operate with
- apply rustfmt
* Bump up crate version to 0.2.0 and pre-fill its changelog
* Disable patching 'actix-threadpool' crate in global workspace as unnecessary
* Revert patching and fix 'actix-rt'
* Migrate actix-rt to std::future (#47 )
* remove Pin from Service::poll_ready(); simplify combinators api; make code compile
* disable tests
* update travis config
* refactor naming
* drop IntoFuture trait
* Migrate actix-server to std::future (#50 )
Still not finished, this is more WIP, this is an aggregation of several commits, which
can be found in semtexzv/std-future-server-tmp branch
* update actix-server
* rename Factor to ServiceFactory
* start server worker in start mehtod
* update actix-utils
* remove IntoTransform trait
* Migrate actix-server::ssl::nativetls to std futures (#61 )
* Refactor 'nativetls' module
* Migrate 'actix-server-config' to std futures
- remove "uds" feature
- disable features by default
* Switch NativeTlsAcceptor to use 'tokio-tls' crate
* Bikeshed features names and remove unnecessary dependencies for 'actix-server-config' crate
* update openssl impl
* migrate actix-connect to std::future
* migrate actix-ioframe to std::future
* update version to alpha.1
* fix boxed service
* migrate server rustls support
* migratte openssl and rustls connecttors
* store the thread's handle with arbiter (#62 )
* update ssl connect tests
* restore service tests
* update readme
2019-11-14 18:38:24 +06:00
Yuki Okushi
e3155957a8
Prepare actix-server release ( #55 )
2019-10-04 17:36:23 +09:00
Yuki Okushi
2667850d60
Prepare actix-server-config release ( #54 )
...
* Prepare actix-server-config release
* Bump up actix-server-config to 0.2.0
2019-10-04 06:13:33 +06:00
Jerome Gravel-Niquet
e733c562d9
Update rustls, tokio-rustls and webpki across the board ( #42 )
...
* Update rustls, tokio-rustls and webpki across the board
* bump minimum rust version to 1.37
* updated readme and changelogs to reflect changes and minimum required rust version
2019-10-04 03:32:32 +09:00
Nikolay Kim
4837a901e2
prepare actix-server release
2019-09-25 10:35:15 +06:00
karlri
b686b4c34e
Feature uds: Add listen_uds to ServerBuilder ( #43 )
...
Allows directly passing an Unix Listener instead of a path. Useful
for example when running as a daemon under systemd with the systemd
crate.
2019-09-16 11:07:46 +06:00
Nikolay Kim
311bb14d97
add unix domain sockets support #3
2019-07-18 17:05:40 +06:00
Igor Gnatenko
ca289ddf7f
Include license files into all sub-crates
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2019-05-30 20:38:44 +02:00
Nikolay Kim
87bc3dacd9
use u64 for shutdown_timeout
2019-05-18 10:56:41 -07:00
Nikolay Kim
f1d0d5f6f9
prepare actix-server release
2019-05-12 08:03:16 -07:00
Nikolay Kim
5f8599faf1
merge master
2019-05-12 06:06:45 -07:00
Nikolay Kim
f0776fca94
Use associated type for NewService config
2019-05-12 06:03:50 -07:00
Nikolay Kim
49ade171f6
Update CHANGES.md
2019-05-01 23:20:00 -07:00
Harry Stern
b0c37dfc87
Derive debug for Server and ServerCommand
2019-05-02 01:31:04 -04:00
Nikolay Kim
ae27b87641
IoStream trait and impls for TcpStream, SslStream and TlsStream
2019-04-16 08:32:12 -07:00
Nikolay Kim
3add90628f
Fix SIGINT force shutdown
2019-03-30 12:09:02 -07:00
Nikolay Kim
44c2639fd6
prepare actix-server release
2019-03-14 20:55:55 -07:00
Nikolay Kim
9a5705d1b6
merge travis branch
2019-03-14 20:53:56 -07:00
Nikolay Kim
7ff923a58f
stop tests threads
2019-03-14 20:52:17 -07:00
Nikolay Kim
1146d9cf30
fix init order
2019-03-14 20:48:58 -07:00
Nikolay Kim
b7b76c47e5
rename method
2019-03-14 20:23:49 -07:00
Nikolay Kim
d23dc6f6af
Allow to run future before server service initialization
2019-03-14 20:09:34 -07:00
Nikolay Kim
b6f952b036
remove constraint
2019-03-12 16:49:57 -07:00
Nikolay Kim
0fdac38307
add constraint
2019-03-12 16:48:29 -07:00
Nikolay Kim
a3c4637372
prepare actix-server release
2019-03-12 16:40:22 -07:00