Commit graph

127 commits

Author SHA1 Message Date
Nikolay Kim
cd56883197
Clippy (#499) 2025-01-14 21:58:10 +05:00
Nikolay Kim
e33149df1b
Added Service::poll() method (#481) 2024-12-04 13:33:20 +05:00
Nikolay Kim
c657b9c2d6
Run un-readiness check in separate task (#464) 2024-11-10 16:47:33 +05:00
Nikolay Kim
5700a50f56
Fix un-needed wakeups for unready future (#462) 2024-11-10 14:41:51 +05:00
Nikolay Kim
0a376457f1
Do not rely on not_ready(), always check service readiness (#459) 2024-11-05 15:35:34 +05:00
Nikolay Kim
ddbc4a722d
Optimize readiness handling (#457) 2024-11-04 18:18:15 +05:00
Nikolay Kim
c26b336fe5
Use updated Service trait for ntex (#456) 2024-11-04 14:04:00 +05:00
Nikolay Kim
c303d02f89
Update buffer service (#452) 2024-11-03 13:39:11 +05:00
Nikolay Kim
8288fc0364
Use updated Service trait (#450) 2024-11-02 17:44:35 +05:00
Nikolay Kim
011e9cdfea
Added Service::not_ready() method (#449) 2024-11-02 12:49:49 +05:00
Nikolay Kim
fc67031a3a
Fix shared readiness notification (#445) 2024-10-31 15:31:37 +05:00
Nikolay Kim
5429eb7d24
Introduce PipelineTag, which allows to notify pipeline binding (#441) 2024-10-19 09:42:28 +09:00
Nikolay Kim
d101fbc668 Do not check readiness for dispatcher call 2024-10-10 18:57:24 +05:00
Nikolay Kim
effce6915f
Notify readiness waiters if ready call get dropped (#431) 2024-09-29 16:39:26 +05:00
Nikolay Kim
3edb54ffdf
Fix tests runner (#413) 2024-09-05 19:32:38 +05:00
Nikolay Kim
d39611d246
Clippy warnings (#382) 2024-07-16 22:13:33 +02:00
Nikolay Kim
e0b5284fdd
More tests (#368) 2024-05-29 20:30:14 +05:00
Nikolay Kim
34142e1ae2
Fix handling not consumed request's payload (#367) 2024-05-29 18:29:49 +05:00
Nikolay Kim
9c29de14cf
Fix handling payload timer after payload got consumed (#366) 2024-05-29 17:42:18 +05:00
Nikolay Kim
3b49828e5f
Use async fn for Service::ready() and Service::shutdown() (#364) 2024-05-28 19:26:08 +05:00
Nikolay Kim
dec6ab083a
Use "async fn" for Service::ready() and Service::shutdown() methods (#361) 2024-05-28 16:37:16 +05:00
Nikolay Kim
d393d87164
Refactor worker management (#312) 2024-03-23 07:17:04 +01:00
Nikolay Kim
661c5ea1fa Clippy warnings (#305) 2024-03-12 17:53:26 +05:00
Nikolay Kim
a8447b1f6d
Update deps (#296) 2024-02-07 06:01:17 -06:00
Nikolay Kim
b19cb340a7
Add fmt::Debug impl for PipelineCall (#295) 2024-02-07 04:29:35 -06:00
Nikolay Kim
112c127eb9
Use async fn for Responder and Handler traits (#283) 2024-01-09 23:26:17 +06:00
Nikolay Kim
e30d5c0fa5 Prep ntex release 2024-01-09 22:25:07 +06:00
Nikolay Kim
587b248b57 Prepare io release 2024-01-09 21:10:26 +06:00
Nikolay Kim
c864b10e62 Prepare release 2024-01-09 20:17:07 +06:00
Nikolay Kim
5869141954
Various cleanups (#282) 2024-01-09 19:35:38 +06:00
Nikolay Kim
48eb1c5e54 Update license 2024-01-08 21:32:26 +06:00
Nikolay Kim
412944e973 Prepare release 2024-01-07 20:26:26 +06:00
Nikolay Kim
4950eb4167 Migrate ntex to async fn in trait 2024-01-07 19:26:44 +06:00
Nikolay Kim
a9d5845005 Use async fn in trait for Service definition 2024-01-07 11:32:41 +06:00
Nikolay Kim
c011bc68c3
Use From<T::Error> for apply_fn util (#225)
* Use From<T::Error> for apply_fn util
2023-09-20 00:42:23 +06:00
Nikolay Kim
02e111d373
Add missing fmt::Debug impls (#224)
* Add missing fmt::Debug impls
2023-09-11 21:43:07 +06:00
Nikolay Kim
19cc8ab315 Clippy 2023-09-05 15:49:49 +06:00
Nikolay Kim
996f2afdb7 Use Pipeline<T> instead of ApplyService<T> 2023-08-14 16:23:10 +06:00
Nikolay Kim
17ffaf105e
Add .apply_fn() for chain and chain factory (#220)
* Add .apply_fn() for chain and chain factory
2023-08-12 17:55:00 +06:00
Nikolay Kim
594bf0a8e2
Refactor pipeline call impl (#219)
* Refactor pipeline call impl
2023-08-10 22:10:02 +06:00
Nikolay Kim
2e66b4b361 Update tests 2023-06-26 10:00:16 +06:00
Will Brown
eea5b3b539
Synchronized buffer (#216)
* added a new function to servicecall to allow only advancing to the service call and then returning the service response future
* buffer can maintain order/backpressure by implementing strict readiness and synchronous calling
* buffer can flush in order or cancel pending buffered futures on shutdown
2023-06-26 09:19:56 +06:00
Nikolay Kim
4380b3a155
PipelineCall is static (#215)
* PipelineCall is static

* Fix static lifetimes req
2023-06-23 23:11:16 +06:00
Nikolay Kim
1fd6311a5d Update changes 2023-06-22 18:43:25 +06:00
Nikolay Kim
6382ef6b40
Refactor service pipelines (#214) 2023-06-22 18:39:09 +06:00
Nikolay Kim
a02009d7be Update docs 2023-06-21 10:30:56 +06:00
Nikolay Kim
589b48f073 Link apply_fn service readiness with parent 2023-06-21 10:24:16 +06:00
Nikolay Kim
ea14e8f0f4
Add ContainerCall future (#213)
* Add Container::static_call(), returns future that is suitable for spawning into runtime

* Remove unsafe from h1 dispatcher

* Make call_nowait public

* Update MSRV
2023-06-21 10:21:43 +06:00
Nikolay Kim
50528b11ff
Remove Deref for Container<T> (#212) 2023-06-19 22:31:07 +06:00
Nikolay Kim
108e2ac20a Rename Ctx to ServiceCtx 2023-06-19 18:47:15 +06:00