Commit Graph

1004 Commits

Author SHA1 Message Date
Thales Fragoso f4edbd1114 server: Don't listen to SIGHUP
The Server didn't take any action when receiving SIGHUP. However,
Signals would return Poll::Ready, which would cause the Server to miss
any other signal after that

This is probably better than just quitting on SIGHUP, because it's
common to repurpose it for something other than quitting
2021-10-02 14:33:23 -03:00
Riley 80a362712f
Fix Service<u8> request documentation (#388) 2021-09-26 01:30:11 +01:00
Ibraheem Ahmed 2b1edb95ea
`spawn` should allow futures with non-unit outputs (#369)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-09-01 21:51:03 +01:00
Rob Ede 4644fa41cf
run doc test in parallel (#387) 2021-09-01 21:30:26 +01:00
Rob Ede 98c37fe47d
clippy 2021-09-01 20:59:54 +01:00
Rob Ede b9455d2ca9
move router crate 2021-08-06 19:05:29 +01:00
Rob Ede 0183b0f8cc
soft-disallow prefix resources with tail segments (#379) 2021-08-06 18:48:49 +01:00
Ali MJ Al-Nasrawy b122a1ae1a
ResourceDef::join (#380) 2021-08-06 18:48:30 +01:00
Rob Ede 4303058243
enforce path / separators on dynamic prefixes (#378) 2021-08-06 18:25:21 +01:00
Aravinth Manivannan 48b2e11509
improve malformed path error message (#384) 2021-08-06 18:06:29 +01:00
Ali MJ Al-Nasrawy 5379a46a99
ResourceDef: relax unnecessary bounds (#381) 2021-08-06 17:45:10 +01:00
Rob Ede f8f1ac94bc
add Patterns::is_empty and impl IntoPatterns for Patterns 2021-07-20 08:18:50 +01:00
Rob Ede 82cd5b8290
prepare router release 0.5.0-beta.1 2021-07-20 07:43:50 +01:00
Rob Ede c65e8524b2
rework resourcedef (#373) 2021-07-19 22:37:54 +01:00
Rob Ede a83dfaa162
Update macros.rs
closes #234
2021-07-17 20:54:53 +01:00
Rob Ede e4ec956001
fix examples on msrv 2021-07-17 03:11:25 +01:00
Rob Ede 95cba659ff
add zero cost profiling to router 2021-07-17 01:09:29 +01:00
Rob Ede 5687e81d9f
rework IntoPatterns trait and codegen (#372) 2021-07-17 01:06:23 +01:00
Rob Ede a0fe2a9b2e
clippy 2021-07-16 21:46:32 +01:00
Rob Ede ad22a93466
allow path building when resource has tail (#371) 2021-07-16 21:41:57 +01:00
Rob Ede c2d5b2398a
Rename `Path::{len => segment_count}` (#370) 2021-07-16 19:43:48 +01:00
Ali MJ Al-Nasrawy 5b1ff30dd9
router: fix multi-pattern and path tail matches (#366) 2021-07-16 18:17:00 +01:00
Ali MJ Al-Nasrawy e1317bb3a0
`path.len()` != `path.path().len()` (#368)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-07-15 15:34:49 +01:00
Ali MJ Al-Nasrawy dcea009158
`ResourceDef`: cleanup (#365) 2021-07-15 15:09:01 +01:00
Rob Ede 13c18b8a51
Update CHANGES.md 2021-07-14 10:37:49 +01:00
Rob Ede 06b17d6a43
fix ci 2021-06-28 15:06:29 +01:00
Rob Ede 605ec25143
prepare macros release 0.2.1 2021-06-08 17:48:30 +01:00
Ibraheem Ahmed 3824493fd3
take custom system path in `actix_rt::main` macro (#363) 2021-06-08 17:33:05 +01:00
Rob Ede 3be3e11aa5
change actix-router version to 0.4.0 2021-06-06 18:48:27 +01:00
Rob Ede 6a5ea0342b
prepare router release 0.3.0 (#362) 2021-06-06 18:43:22 +01:00
Ali MJ Al-Nasrawy 23b1f63345
router: handle newline char '\n' in url (#360) 2021-06-06 03:38:58 +01:00
Ali MJ Al-Nasrawy 3aa037d07d
fix changelog (#361) 2021-06-05 19:24:30 +01:00
Ali MJ Al-Nasrawy cf21df14f2
`Path`: fix unsafe malformed string (#359) 2021-06-05 18:29:00 +01:00
Ali MJ Al-Nasrawy a1bf8662c9
router: don't decode %25 to '%' (#357) 2021-06-06 01:34:16 +09:00
Ibraheem Ahmed 6f4d2220fa
store Cow in actix-router Path (#345) 2021-06-05 01:46:40 +01:00
Danilo Bargen 54b22f9fce
Docs: Fix signature of Service::call (#358) 2021-06-02 21:10:36 +01:00
fakeshadow 983abec77d
Fix interrupt handling. Fix double server pause/resume (#353) 2021-04-30 13:42:25 +01:00
fakeshadow e4d4ae21ee
refactor connection counter (#343)
* Remove restart_worker test

* Remove Slab

* Rework counter

* Make counter limit switch accurate

* Remove backpressure. Add pause state

* make changes for review

* fix doc comment for counter
2021-04-29 23:27:08 +08:00
fakeshadow 8ad5f58d38
Remove ServerBuilder::configure (#349) 2021-04-27 23:58:02 +01:00
fakeshadow 613b2be51f
Fix Display impl of MioListener (#350) 2021-04-27 11:54:18 -07:00
Rob Ede b2e9640952
prepare codec 0.4.0 release (#346) 2021-04-21 11:08:43 +01:00
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
Rob Ede fdafc1dd65
amend licences 2021-04-16 02:08:44 +01:00
Rob Ede 7749dfe46a
address msrv todo in router 2021-04-16 02:06:11 +01:00