commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
70ead175b91a348f01263046be9d2adee1787007
Nikolay Kim
2019-03-09T04:51:50
IntoService for fn_cfg_factory
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 0fdfac1..9ec7849 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -28,7 +28,8 @@ where pub fn fn_cfg_factory<F, C, R, S, E, Req>(f: F) -> FnNewServiceConfig<F, C, R, S, E, Req> where F: Fn(&C...
1
2
1
49867b5e9d0a50545d75acf1f042bfa48d010fda
Nikolay Kim
2019-03-09T04:50:29
fix IntoService
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 3d55b33..0fdfac1 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -1,7 +1,7 @@ use std::marker::PhantomData; -use futures::future::{ok, FutureResult}; -use futures::{Async, IntoFuture, Poll}; +us...
1
41
9
0f064c43e9bca0a04ad3d249ee535a55293662c2
Nikolay Kim
2019-03-09T04:10:47
remove uneeded code
diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs index 6a1b343..51accad 100644 --- a/actix-server-config/src/lib.rs +++ b/actix-server-config/src/lib.rs @@ -1,11 +1,7 @@ use std::cell::Cell; -use std::marker::PhantomData; use std::net::SocketAddr; use std::rc::Rc; -use actix_service::{F...
1
0
55
7db29544f9aed669e7615f01aefe04d597c0d382
Nikolay Kim
2019-03-09T03:43:13
add ServerConfig param for server service
diff --git a/Cargo.toml b/Cargo.toml index 88a8742..973b2f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ members = [ "actix-rt", "actix-service", "actix-server", + "actix-server-config", "actix-test-server", "actix-utils", "router", diff --git a/actix-server-config/Cargo.toml b/actix-se...
11
221
31
4850cf41ff860482cd544d87838d4d85e0cfb059
Nikolay Kim
2019-03-09T00:26:30
rename module
diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index bafaa6b..df4ccf8 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -12,8 +12,8 @@ use num_cpus; use tokio_timer::sleep; use crate::accept::{AcceptLoop, AcceptNotify, Command}; -use crate::config::{ConfiguredServ...
3
8
9
046142ffbcc39a9f0ddf31ee087dba13eb874b57
Nikolay Kim
2019-03-08T23:34:40
added is_prefix_match and resource_path
diff --git a/router/src/resource.rs b/router/src/resource.rs index 27c604a..ada5da5 100644 --- a/router/src/resource.rs +++ b/router/src/resource.rs @@ -127,6 +127,57 @@ impl ResourceDef { } } + /// Is prefix path a match against this resource? + pub fn is_prefix_match(&self, path: &str) -> Option...
1
92
28
49e6dbcda2f4ea7c23ec7c09a8bc5cedd70e84d4
Nikolay Kim
2019-03-08T20:33:44
remove unused ResourceMap
diff --git a/router/src/resource.rs b/router/src/resource.rs index 32e3d99..27c604a 100644 --- a/router/src/resource.rs +++ b/router/src/resource.rs @@ -14,26 +14,13 @@ const MAX_DYNAMIC_SEGMENTS: usize = 16; /// Resource definition can contain only 16 dynamic segments #[derive(Clone, Debug)] pub struct ResourceDef ...
2
79
284
877614a4947f289fbc709c37bab7ee869f8d8a20
Nikolay Kim
2019-03-08T12:43:51
add params decoding
diff --git a/router/src/path.rs b/router/src/path.rs index 6e25519..4a4679d 100644 --- a/router/src/path.rs +++ b/router/src/path.rs @@ -159,6 +159,25 @@ impl<T: ResourcePath> Path<T> { } } +#[cfg(feature = "http")] +use std::borrow::Cow; + +#[cfg(feature = "http")] +impl Path<crate::Url> { + /// Get URL-dec...
2
101
72
ac0e8b9e5352bda58e36d6cdc9264eeebd075092
Nikolay Kim
2019-03-07T07:33:35
re-enable examples
diff --git a/Cargo.toml b/Cargo.toml index 665b040..88a8742 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,18 @@ +[package] +name = "actix-net" +version = "0.3.0" +authors = ["Nikolay Kim <fafhrd91@gmail.com>"] +description = "Actix net - framework for the compisible network services for Rust" +readme = "README.md...
3
37
23
51bd7d2721e6e2e88f9683785ac9f20f6584be7a
Nikolay Kim
2019-03-06T18:39:53
update actix-rt
diff --git a/actix-server/Cargo.toml b/actix-server/Cargo.toml index 68e9a31..2cc21f9 100644 --- a/actix-server/Cargo.toml +++ b/actix-server/Cargo.toml @@ -35,7 +35,7 @@ rust-tls = ["rustls", "tokio-rustls", "webpki", "webpki-roots"] [dependencies] #actix-service = "0.3.2" actix-service = { path="../actix-service" ...
1
1
1
25f1eae51fed9063848ed95ca854ef0823a034a2
Nikolay Kim
2019-03-06T05:03:53
add ResourceDef::root_prefix, insert slash to the beggining of the pattern
diff --git a/router/src/resource.rs b/router/src/resource.rs index 18a10f0..32e3d99 100644 --- a/router/src/resource.rs +++ b/router/src/resource.rs @@ -64,6 +64,17 @@ impl ResourceDef { ResourceDef::with_prefix(path, true) } + /// Parse path pattern and create new `Pattern` instance. + /// Insert...
1
24
0
1153715149af423fee2b3cdf5f0442c82d559265
Nikolay Kim
2019-03-05T17:49:08
change generics order for Transform trait
diff --git a/actix-service/src/and_then_apply.rs b/actix-service/src/and_then_apply.rs index d24479b..452f86d 100644 --- a/actix-service/src/and_then_apply.rs +++ b/actix-service/src/and_then_apply.rs @@ -21,7 +21,7 @@ impl<T, A, B, BR> AndThenTransform<T, A, B, BR> { where A: NewService<AR, C>, ...
9
37
40
aa2967c65339ae44b15e7fcca3050695366f650a
Nikolay Kim
2019-03-05T15:41:41
fix feature gated code
diff --git a/actix-connector/src/ssl/openssl.rs b/actix-connector/src/ssl/openssl.rs index 3df9cab..f05b17e 100644 --- a/actix-connector/src/ssl/openssl.rs +++ b/actix-connector/src/ssl/openssl.rs @@ -26,8 +26,7 @@ impl<R, T, E> OpensslConnector<R, T, E> { impl<R: RequestHost, T: AsyncRead + AsyncWrite> OpensslConnect...
4
11
18
700abc997ef61a6764f9abe46ccdc01f4b44c9c6
Nikolay Kim
2019-03-05T03:45:17
prepare actix-utils release
diff --git a/actix-utils/Cargo.toml b/actix-utils/Cargo.toml index 6eb0926..23c7361 100644 --- a/actix-utils/Cargo.toml +++ b/actix-utils/Cargo.toml @@ -18,8 +18,7 @@ name = "actix_utils" path = "src/lib.rs" [dependencies] -#actix-service = "0.3.1" -actix-service = { path="../actix-service" } +actix-service = "0.3....
2
2
3
e9657a399a78bf560d3823ed08d524d4c3fc504f
Nikolay Kim
2019-03-04T23:41:16
add maxconnrate
diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index 7e1fe00..b23a174 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -17,7 +17,7 @@ use crate::server::{Server, ServerCommand}; use crate::services::{InternalServiceFactory, ServiceFactory, StreamNewService}; use cr...
1
12
3
82930de8e7b417aef0ed0a6b839eeb2793c95801
Nikolay Kim
2019-03-04T22:03:46
use default type for RouterBuilder
diff --git a/router/src/router.rs b/router/src/router.rs index 629c13e..725a553 100644 --- a/router/src/router.rs +++ b/router/src/router.rs @@ -126,7 +126,7 @@ impl ResourceMap { } } -pub struct RouterBuilder<T, U> { +pub struct RouterBuilder<T, U = ()> { rmap: ResourceMap, named: HashMap<String, Res...
1
1
1
04a3e59bd5d15e5271c342df0cc9c24c6d868e9e
Nikolay Kim
2019-03-04T20:41:39
update tests
diff --git a/router/src/path.rs b/router/src/path.rs index 58666bd..6e25519 100644 --- a/router/src/path.rs +++ b/router/src/path.rs @@ -4,7 +4,7 @@ use std::rc::Rc; use serde::de; use crate::de::PathDeserializer; -use crate::ResourcePath; +use crate::{Resource, ResourcePath}; #[derive(Debug, Clone, Copy)] pub(...
1
7
1
0ff0daa795ce725d56a9c8d5adc2553585bfb721
Nikolay Kim
2019-03-04T19:47:03
allow custom checks for resource selection
diff --git a/router/src/de.rs b/router/src/de.rs index 8a56474..1ce797b 100644 --- a/router/src/de.rs +++ b/router/src/de.rs @@ -2,7 +2,7 @@ use serde::de::{self, Deserializer, Error as DeError, Visitor}; use serde::forward_to_deserialize_any; use crate::path::{Path, PathIter}; -use crate::Resource; +use crate::Res...
6
82
49
fb43940824a9a235e9e5addf7dd777f3da6a5cb1
Nikolay Kim
2019-03-04T05:00:58
allow empty pattern
diff --git a/router/src/de.rs b/router/src/de.rs index 1ce797b..8a56474 100644 --- a/router/src/de.rs +++ b/router/src/de.rs @@ -2,7 +2,7 @@ use serde::de::{self, Deserializer, Error as DeError, Visitor}; use serde::forward_to_deserialize_any; use crate::path::{Path, PathIter}; -use crate::ResourcePath; +use crate:...
6
40
44
0410f59cf569857e18dac4cba80232bc80442679
Nikolay Kim
2019-03-02T22:55:22
prep release
diff --git a/actix-test-server/Cargo.toml b/actix-test-server/Cargo.toml index 0ae2c5f..05801cb 100644 --- a/actix-test-server/Cargo.toml +++ b/actix-test-server/Cargo.toml @@ -34,12 +34,9 @@ rust-tls = ["rustls", "tokio-rustls", "webpki", "webpki-roots"] [dependencies] actix-rt = "0.1.0" -#actix-server = "0.2.0" -...
1
1
4
b5b3168b34f2f61757401ca83d4766e13ce3721a
Nikolay Kim
2019-03-02T21:49:21
do not use void for now
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 630b5d3..5b1319f 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -3,7 +3,6 @@ use std::marker::PhantomData; use futures::future::{ok, FutureResult}; use futures::{Async, IntoFuture, Poll}; -use...
1
1
2
668e4f9ac49494e0d010d3edc94da6e79f186ee7
Nikolay Kim
2019-03-02T21:18:01
update utils; add NewTransform::map_init_err
diff --git a/actix-service/Cargo.toml b/actix-service/Cargo.toml index 5a06e33..b50d5ed 100644 --- a/actix-service/Cargo.toml +++ b/actix-service/Cargo.toml @@ -24,3 +24,4 @@ path = "src/lib.rs" [dependencies] futures = "0.1.24" +void = "1.0.2" diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_ser...
10
127
23
d0b8b6940c3143b22dd8110b712a8a8b63eb1fb2
Nikolay Kim
2019-03-02T20:16:30
add configuration parameter to transform factory
diff --git a/actix-service/src/and_then_apply.rs b/actix-service/src/and_then_apply.rs index 7463307..3c4691e 100644 --- a/actix-service/src/and_then_apply.rs +++ b/actix-service/src/and_then_apply.rs @@ -169,7 +169,7 @@ impl<T, A, B, C> NewService<C> for AndThenTransformNewService<T, A, B, C> where A: NewService...
8
90
51
f1bc9d0deb2f5130754c31be2518076907a71e81
Nikolay Kim
2019-02-23T02:47:29
update tests
diff --git a/actix-utils/src/inflight.rs b/actix-utils/src/inflight.rs index 934a065..a8461ec 100644 --- a/actix-utils/src/inflight.rs +++ b/actix-utils/src/inflight.rs @@ -98,7 +98,8 @@ mod tests { use std::time::Duration; use super::*; - use actix_service::{Blank, BlankNewService, NewService, Service, ...
3
6
3
6ed020565c9baaf501ccb007a514304eb3c02e97
Nikolay Kim
2019-02-23T02:31:25
update service crate
diff --git a/actix-test-server/Cargo.toml b/actix-test-server/Cargo.toml index 63d968d..0ae2c5f 100644 --- a/actix-test-server/Cargo.toml +++ b/actix-test-server/Cargo.toml @@ -34,7 +34,8 @@ rust-tls = ["rustls", "tokio-rustls", "webpki", "webpki-roots"] [dependencies] actix-rt = "0.1.0" -actix-server = "0.2.0" +#a...
1
2
1
83f51b28d7de68c99d5be7f1a2bb3ac4c752a42c
Nikolay Kim
2019-02-23T01:12:26
allow to customize cfg parameter for FnNewService
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index f8bd71b..8e713bc 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -6,7 +6,7 @@ use futures::{Async, IntoFuture, Poll}; use super::{IntoConfigurableNewService, IntoNewService, IntoService, NewServic...
1
1
1
83a19e9cb3f667c3d96dfbd94a6e891f30df41f2
Nikolay Kim
2019-02-22T22:30:00
add IntoConfigurableNewService
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index adf13e3..f8bd71b 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -3,7 +3,7 @@ use std::marker::PhantomData; use futures::future::{ok, FutureResult}; use futures::{Async, IntoFuture, Poll}; -use...
2
29
11
6b4010892d40fc15eed0f48a5f556f4316661074
Nikolay Kim
2019-02-22T22:19:43
add IntoNewService for FnNewService
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index ec2292b..adf13e3 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -142,6 +142,16 @@ where } } +impl<F, Req, Out, Cfg> IntoNewService<FnNewService<F, Req, Out, Cfg>, Cfg> for F +where + F:...
2
21
11
d2bd9134aa9220c9dea24146927ea6ed7c5bac0a
Nikolay Kim
2019-02-22T22:13:48
add fn service helpers
diff --git a/actix-connector/src/connector.rs b/actix-connector/src/connector.rs index b274586..e3c12cc 100644 --- a/actix-connector/src/connector.rs +++ b/actix-connector/src/connector.rs @@ -4,8 +4,8 @@ use std::net::{IpAddr, SocketAddr}; use std::time::Duration; use std::{fmt, io}; -use actix_service::{NewServic...
4
101
36
a0e2d926e6b76275a217a4b2cd60d18cc02cca02
Nikolay Kim
2019-02-22T21:20:52
add fn_nservice
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 14db4de..9bdedcd 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -66,6 +66,15 @@ where } } +/// Create `NewService` for function that can act as Service +pub fn fn_nservice<F, Req, Out>(f: ...
2
22
12
43d2dd473fe5eed9855cc6bd327783520640a211
Nikolay Kim
2019-02-22T21:08:31
update tests
diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 83b602f..14db4de 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -3,7 +3,7 @@ use std::marker::PhantomData; use futures::future::{ok, FutureResult}; use futures::{Async, IntoFuture, Poll}; -use...
4
65
4
a53f06a1a4a4c958cbfcc053208829e5bc2cdc27
Nikolay Kim
2019-02-10T04:43:39
allow register router resource for ResourceDef
diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index b682651..f4bb77a 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -89,7 +89,6 @@ where /// `ApplyNewService` new service combinator pub struct ApplyNewService<T, S> where - // T::InitError: From<S::InitError>, ...
2
9
1
9979bfb3ef34f2d4bd26a37e47671136d2c31be7
Nikolay Kim
2019-02-09T15:24:35
rename Pattern to ResourceDef
diff --git a/router/src/de.rs b/router/src/de.rs index 89622fd..1ce797b 100644 --- a/router/src/de.rs +++ b/router/src/de.rs @@ -2,7 +2,7 @@ use serde::de::{self, Deserializer, Error as DeError, Visitor}; use serde::forward_to_deserialize_any; use crate::path::{Path, PathIter}; -use crate::RequestPath; +use crate::...
6
102
64
08bc328826b86d1448126baa86174338a80dadfe
Nikolay Kim
2019-02-04T19:04:10
clippy warnings
diff --git a/actix-service/src/and_then_apply.rs b/actix-service/src/and_then_apply.rs index 96c6861..9c5fc49 100644 --- a/actix-service/src/and_then_apply.rs +++ b/actix-service/src/and_then_apply.rs @@ -108,7 +108,7 @@ where fn poll(&mut self) -> Poll<Self::Item, Self::Error> { if let Some(ref mut fut...
8
21
8
7dca264546b8981c432c1ecf18195cc9b3cf97f5
Nikolay Kim
2019-02-04T18:55:39
move transform map_err combinator to separate module
diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs index 0672c32..fb2186b 100644 --- a/actix-service/src/lib.rs +++ b/actix-service/src/lib.rs @@ -14,6 +14,7 @@ mod map_err; mod map_init_err; mod then; mod transform; +mod transform_map_err; pub use self::and_then::{AndThen, AndThenNewService}; use ...
3
192
187
3bddba5da5fbc3597c675d59f3a9da2c84eb6003
Nikolay Kim
2019-02-03T22:12:15
helper method
diff --git a/actix-utils/src/order.rs b/actix-utils/src/order.rs index 1f33cad..b35044b 100644 --- a/actix-utils/src/order.rs +++ b/actix-utils/src/order.rs @@ -43,17 +43,34 @@ pub struct InOrder<S> { _t: PhantomData<S>, } -impl<S> InOrder<S> { +impl<S> InOrder<S> +where + S: Service, + S::Response: 'stat...
1
21
4
bcc466f6ab0717057165204415a0bfbd0fe1aee2
Nikolay Kim
2019-02-03T19:48:11
update tests
diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index 1335bcf..8709e1a 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -242,10 +242,9 @@ mod tests { #[test] fn test_apply() { - let mut srv = Apply::new_fn( - |req: &'static str, srv| srv.call...
1
18
19
663ae53954ac01d193993842d2b60f3d72592c66
Nikolay Kim
2019-02-03T19:37:34
fix Clone impl for Timeout
diff --git a/actix-utils/src/timeout.rs b/actix-utils/src/timeout.rs index 165dcde..7ed1138 100644 --- a/actix-utils/src/timeout.rs +++ b/actix-utils/src/timeout.rs @@ -12,7 +12,7 @@ use futures::{Async, Future, Poll}; use tokio_timer::{clock, Delay}; /// Applies a timeout to requests. -#[derive(Debug, Clone)] +#[d...
1
7
1
406088524ece8e896a2374d1af7f30969b2bbfe0
Nikolay Kim
2019-02-03T19:33:26
depend on git repo
diff --git a/actix-utils/Cargo.toml b/actix-utils/Cargo.toml index a71e29a..126dfd9 100644 --- a/actix-utils/Cargo.toml +++ b/actix-utils/Cargo.toml @@ -18,8 +18,7 @@ name = "actix_utils" path = "src/lib.rs" [dependencies] -#actix-service = "0.2.0" -actix-service = { git = "https://github.com/actix/actix-net.git" }...
2
15
8
5b8446105f9fc677d617a6853aa3395464e35637
Nikolay Kim
2019-02-03T19:16:24
depend on repo
diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index 2a821fe..1335bcf 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -89,9 +89,9 @@ where /// `ApplyNewService` new service combinator pub struct ApplyNewService<T, S> where - T::Error: From<S::Error>, // T::In...
3
4
8
429ad453d37be9d8f807558feb122ba0dd67f17a
Nikolay Kim
2019-02-03T18:52:44
change Apply::new_fn to old args order
diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index aa7a8cc..2a821fe 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -43,10 +43,10 @@ where S: Service, { /// Create new `Apply` combinator - pub fn new_fn<S1: IntoService<S>>(transform: F, service: S1) -> S...
1
2
2
d45fb9521fcdd94979a94e871a226cd75cec1484
Nikolay Kim
2019-02-02T04:11:30
update deps
diff --git a/Cargo.toml b/Cargo.toml index c7e066d..15221a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,8 +28,8 @@ members = [ [dev-dependencies] actix-service = "0.2.0" actix-codec = "0.1.0" -actix-rt = { path="actix-rt" } -actix-server = { path="actix-server", features=["ssl"] } +actix-rt = { version="0.1.0" }...
2
3
4
8cdbf49187b1ea7f5039f0f8354fbe18f7424657
Nikolay Kim
2019-02-01T23:15:53
better inflight readiness check
diff --git a/actix-utils/src/inflight.rs b/actix-utils/src/inflight.rs index d4751d0..31877d1 100644 --- a/actix-utils/src/inflight.rs +++ b/actix-utils/src/inflight.rs @@ -106,11 +106,12 @@ where type Future = InFlightServiceResponse<T, Request>; fn poll_ready(&mut self) -> Poll<(), Self::Error> { - ...
1
4
3
132be0baa13220add54669277591557350c532ff
Nikolay Kim
2019-02-01T22:48:09
better naming
diff --git a/actix-service/src/from_err.rs b/actix-service/src/from_err.rs index 55b560f..9d62445 100644 --- a/actix-service/src/from_err.rs +++ b/actix-service/src/from_err.rs @@ -47,7 +47,7 @@ where type Future = FromErrFuture<A, E, Request>; fn poll_ready(&mut self) -> Poll<(), E> { - Ok(self.serv...
2
6
6
cedba24a36247e1c29993030e59a4811aafb9088
Nikolay Kim
2019-02-01T21:25:56
add Url type from actix web
diff --git a/router/Cargo.toml b/router/Cargo.toml index fb2237e..9658bd9 100644 --- a/router/Cargo.toml +++ b/router/Cargo.toml @@ -27,4 +27,5 @@ string = "0.1.3" http = { version="0.1.14", optional=true } [dev-dependencies] +http = "0.1.14" serde_derive = "1.0" diff --git a/router/src/lib.rs b/router/src/lib.rs ...
4
240
0
aa20b304ece9f38f96a535126e2c63f71e66cc48
Nikolay Kim
2019-01-27T06:07:27
more refactorings for framed transport
diff --git a/actix-utils/src/framed.rs b/actix-utils/src/framed.rs index 044483f..47c6ed9 100644 --- a/actix-utils/src/framed.rs +++ b/actix-utils/src/framed.rs @@ -23,9 +23,11 @@ pub struct FramedNewService<S, T, U> { impl<S, T, U> FramedNewService<S, T, U> where S: NewService<Request<U>, Response = Response<U>...
1
75
64
9f0a288e4b3b6578e186c72af5d60d4dd17be803
Nikolay Kim
2019-01-27T05:41:28
refactor FramedTransport
diff --git a/actix-utils/src/framed.rs b/actix-utils/src/framed.rs index 980ff5e..044483f 100644 --- a/actix-utils/src/framed.rs +++ b/actix-utils/src/framed.rs @@ -1,14 +1,17 @@ //! Framed dispatcher service and related utilities +use std::collections::VecDeque; use std::marker::PhantomData; use std::mem; use ac...
1
124
144
cabebb6b3f8851c295ef00227c75002878805acd
Nikolay Kim
2019-01-26T21:21:56
add time services tests
diff --git a/actix-utils/Cargo.toml b/actix-utils/Cargo.toml index 6beb581..ceef0af 100644 --- a/actix-utils/Cargo.toml +++ b/actix-utils/Cargo.toml @@ -24,4 +24,7 @@ bytes = "0.4" futures = "0.1" tokio-timer = "0.2.8" tokio-current-thread = "0.1" -log = "0.4" \ No newline at end of file +log = "0.4" + +[dev-depende...
2
97
1
ff6ac0a67fc54bd6675635211c69817f09d19f55
Nikolay Kim
2019-01-26T21:14:37
add System time service
diff --git a/actix-utils/src/time.rs b/actix-utils/src/time.rs index 9679ae2..2a83a5a 100644 --- a/actix-utils/src/time.rs +++ b/actix-utils/src/time.rs @@ -1,6 +1,5 @@ -use std::time::{Duration, Instant}; +use std::time::{self, Duration, Instant}; -use actix_rt::spawn; use actix_service::{NewService, Service}; use...
1
62
9
0340d8231401f5e2d48d87f75839876bff0d28f9
Nikolay Kim
2019-01-25T04:41:42
better ergonomics for .apply combinator
diff --git a/actix-service/src/and_then_apply.rs b/actix-service/src/and_then_apply.rs index 125cb89..26db80f 100644 --- a/actix-service/src/and_then_apply.rs +++ b/actix-service/src/and_then_apply.rs @@ -6,7 +6,14 @@ use super::{IntoNewService, IntoService, NewService, Service}; use crate::cell::Cell; /// `Apply` ...
2
28
17
2c8e7c4ae439bcc74b2aec4197d50c10ec1ca9cf
Nikolay Kim
2019-01-16T23:33:10
add helper constructors to Either service
diff --git a/actix-utils/src/either.rs b/actix-utils/src/either.rs index 5449500..272b121 100644 --- a/actix-utils/src/either.rs +++ b/actix-utils/src/either.rs @@ -51,6 +51,34 @@ pub enum Either<A, B> { B(B), } +impl<A, B> Either<A, B> { + pub fn new_a<Request>(srv: A) -> Self + where + A: NewServ...
1
28
0
b6414d6197b33355ce9feb69d9222756a4b1efd9
Nikolay Kim
2019-01-16T23:00:23
use FnMut instead of Fn
diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index 1eb1cc8..e662405 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -17,7 +17,7 @@ where impl<T, F, In, Out, Request> Apply<T, F, In, Out, Request> where T: Service<Request>, - F: Fn(In, &mut T) -> Out, + F:...
2
4
4
db2367b26e9ae5884a696832d20d85a3f1ce6646
Nikolay Kim
2019-01-14T17:41:10
properly check readiness inclosed service
diff --git a/actix-utils/src/stream.rs b/actix-utils/src/stream.rs index 7be9ccb..0a6fd0b 100644 --- a/actix-utils/src/stream.rs +++ b/actix-utils/src/stream.rs @@ -160,8 +160,8 @@ where } loop { - if let Async::Ready(_) = self.service.poll_ready()? { - match self.stream.po...
1
4
3
0bee4db270a89d85db3522d1b6885f442d57dfda
Nikolay Kim
2019-01-14T07:30:42
use new service converter
diff --git a/actix-utils/src/stream.rs b/actix-utils/src/stream.rs index 271aae0..7be9ccb 100644 --- a/actix-utils/src/stream.rs +++ b/actix-utils/src/stream.rs @@ -43,15 +43,9 @@ where T::Service: 'static, <T::Service as Service<Request<S>>>::Future: 'static, { - // pub fn new<F: IntoNewService<T, Reques...
1
2
8
615a0d52ed19dc241515a42c97984e40992f4a02
Nikolay Kim
2019-01-14T07:12:46
add service and new service for stream dispatcher
diff --git a/actix-utils/src/stream.rs b/actix-utils/src/stream.rs index b17258f..271aae0 100644 --- a/actix-utils/src/stream.rs +++ b/actix-utils/src/stream.rs @@ -1,39 +1,152 @@ use std::marker::PhantomData; +use std::rc::Rc; use actix_rt::spawn; -use actix_service::{IntoService, NewService, Service}; +use actix_...
1
143
35
605a947c3e0efc09fa73753cdfb6fa6f36126ff9
Nikolay Kim
2019-01-13T18:06:54
update version
diff --git a/actix-connector/Cargo.toml b/actix-connector/Cargo.toml index 600c0ef..e93ebbd 100644 --- a/actix-connector/Cargo.toml +++ b/actix-connector/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-connector" -version = "0.1.0" +version = "0.1.1" authors = ["Nikolay Kim <fafhrd91@gmail.com>"] description = "...
1
1
1
b5d84bd980caec3a2b5e5ba1a5733e7bca8795c1
Nikolay Kim
2019-01-10T18:40:27
use release version of string
diff --git a/router/Cargo.toml b/router/Cargo.toml index c17a12d..fb2237e 100644 --- a/router/Cargo.toml +++ b/router/Cargo.toml @@ -23,9 +23,7 @@ default = ["http"] bytes = "0.4" regex = "1.0" serde = "1.0.80" -# string = "0.1" -string = { git="https://github.com/fafhrd91/string.git" } - +string = "0.1.3" http = {...
1
1
3
e969429e2c09c81e5c07821181653a24c759161e
Nikolay Kim
2019-01-10T03:54:52
different string crate version
diff --git a/router/Cargo.toml b/router/Cargo.toml index 44fb90a..c17a12d 100644 --- a/router/Cargo.toml +++ b/router/Cargo.toml @@ -23,7 +23,8 @@ default = ["http"] bytes = "0.4" regex = "1.0" serde = "1.0.80" -string = "0.1" +# string = "0.1" +string = { git="https://github.com/fafhrd91/string.git" } http = { v...
1
2
1
6fe741025f719943f6c8b94106ce1707c889c01b
Nikolay Kim
2019-01-08T05:09:56
add host and port for test server
diff --git a/actix-test-server/src/lib.rs b/actix-test-server/src/lib.rs index 9dd51ea..3161d66 100644 --- a/actix-test-server/src/lib.rs +++ b/actix-test-server/src/lib.rs @@ -40,6 +40,8 @@ pub struct TestServer; /// Test server runstime pub struct TestServerRuntime { addr: net::SocketAddr, + host: String, +...
1
21
2
f8e170fdafdaebadc39311d9fdc3cee94e126d2b
Nikolay Kim
2019-01-06T18:26:59
add enum support for path deserializer
diff --git a/router/src/de.rs b/router/src/de.rs index 6856290..89622fd 100644 --- a/router/src/de.rs +++ b/router/src/de.rs @@ -146,12 +146,20 @@ impl<'de, T: RequestPath + 'de> Deserializer<'de> for PathDeserializer<'de, T> { self, _: &'static str, _: &'static [&'static str], - _: V,...
1
32
2
474fed4dfeb4f6d80df0ea5a45798feb695eaa63
Nikolay Kim
2019-01-06T16:12:51
more tests for de
diff --git a/router/src/de.rs b/router/src/de.rs index 02e6ca1..6856290 100644 --- a/router/src/de.rs +++ b/router/src/de.rs @@ -487,12 +487,27 @@ mod tests { id: String, } - #[derive(Deserialize)] + #[derive(Debug, Deserialize)] + struct Test1(String, u32); + + #[derive(Debug, Deserialize)]...
2
73
3
2b8f41e9e42121aed95d8d968848f9ecc6cb0c0e
Nikolay Kim
2019-01-06T06:00:38
helper impls for Router
diff --git a/router/src/lib.rs b/router/src/lib.rs index c213505..54a2fc7 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -7,7 +7,7 @@ mod router; pub use self::de::PathDeserializer; pub use self::path::Path; pub use self::pattern::Pattern; -pub use self::router::{Router, RouterBuilder}; +pub use self::rou...
3
54
3
58ba1d826900d134fe9b46ec9625b5393c29a0ef
Nikolay Kim
2019-01-05T21:19:06
use service error for stream dispatcher
diff --git a/actix-utils/src/stream.rs b/actix-utils/src/stream.rs index 4651910..b17258f 100644 --- a/actix-utils/src/stream.rs +++ b/actix-utils/src/stream.rs @@ -5,18 +5,22 @@ use actix_service::{IntoService, NewService, Service}; use futures::unsync::mpsc; use futures::{future, Async, Future, Poll, Stream}; -pu...
1
15
11
7017bad4bb530724f3fe7398ec491f6ce19c7071
Nikolay Kim
2019-01-02T06:59:52
add test server
diff --git a/Cargo.toml b/Cargo.toml index 40e4831..f71868d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,9 +17,10 @@ edition = "2018" members = [ "actix-codec", "actix-connector", + "actix-rt", "actix-service", "actix-server", - "actix-rt", + "actix-test-server", "actix-utils", ] diff --git a/a...
3
182
1
48a1c7320cab7d6542784afd7ecc35e0f5ef8043
Nikolay Kim
2018-12-21T21:00:26
fix io handling code
diff --git a/actix-utils/src/framed.rs b/actix-utils/src/framed.rs index cdceeaf..d91af82 100644 --- a/actix-utils/src/framed.rs +++ b/actix-utils/src/framed.rs @@ -187,7 +187,7 @@ where enum TransportState<S: Service<Request<U>>, U: Encoder + Decoder> { Processing, Error(FramedTransportError<S::Error, U>), ...
1
5
5
640c39fdc82f5766f0cd6c030dade0c4bdcc8154
Nikolay Kim
2018-12-17T00:26:24
better usage for Framed type
diff --git a/actix-utils/Cargo.toml b/actix-utils/Cargo.toml index 4033cee..e6303e2 100644 --- a/actix-utils/Cargo.toml +++ b/actix-utils/Cargo.toml @@ -21,8 +21,7 @@ path = "src/lib.rs" actix-service = "0.1.1" actix-codec = "0.1.0" actix-rt = "0.1.0" - -# io bytes = "0.4" futures = "0.1" tokio-timer = "0.2.8" +l...
2
30
51
cd5435e5ee095997077abd632c65b57a31de1563
Nikolay Kim
2018-12-13T02:56:39
fix service tests
diff --git a/actix-service/src/and_then.rs b/actix-service/src/and_then.rs index f9b7446..b2df9f7 100644 --- a/actix-service/src/and_then.rs +++ b/actix-service/src/and_then.rs @@ -219,7 +219,7 @@ mod tests { use std::rc::Rc; use super::*; - use crate::{NewService, Service}; + use crate::{NewService, ...
6
7
7
d1bfae7414cb290ffa8b881dd80955d387a39e7c
Nikolay Kim
2018-12-12T22:24:24
fix backpressure for ssl concurrent handshakes
diff --git a/actix-server/src/counter.rs b/actix-server/src/counter.rs index 1302c91..539ce49 100644 --- a/actix-server/src/counter.rs +++ b/actix-server/src/counter.rs @@ -9,6 +9,7 @@ use futures::task::AtomicTask; /// Counter could be cloned, total ncount is shared across all clones. pub struct Counter(Rc<CounterIn...
2
9
7
5ca00dc7981bb756cfc71ba09a25eb57ff5c97fb
Nikolay Kim
2018-12-12T22:16:16
rename ServiceConfig::rt to ServiceConfig::apply
diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index c16de55..0e53352 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -64,7 +64,7 @@ impl ServerBuilder { /// Set number of workers to start. /// - /// By default server uses number of available logical ...
2
34
17
d38eb00793a41fa1916a447b368e7938088807b7
Nikolay Kim
2018-12-11T16:36:03
no readme
diff --git a/actix-server/Cargo.toml b/actix-server/Cargo.toml index 446ee23..4015bd7 100644 --- a/actix-server/Cargo.toml +++ b/actix-server/Cargo.toml @@ -3,7 +3,6 @@ name = "actix-server" version = "0.1.0" authors = ["Nikolay Kim <fafhrd91@gmail.com>"] description = "Actix server - General purpose tcp server" -re...
2
0
2
3c9d95bd9fabc266c6254ad34cf5636c003208f4
Nikolay Kim
2018-12-11T16:33:28
no readme
diff --git a/actix-connector/Cargo.toml b/actix-connector/Cargo.toml index 3e206a3..02a9e28 100644 --- a/actix-connector/Cargo.toml +++ b/actix-connector/Cargo.toml @@ -3,7 +3,6 @@ name = "actix-connector" version = "0.1.0" authors = ["Nikolay Kim <fafhrd91@gmail.com>"] description = "Actix Connector - tcp connector...
1
0
1
331db2eb47d988a5c840b88efc2f6afadfad051f
Nikolay Kim
2018-12-11T16:28:44
use released version
diff --git a/actix-connector/Cargo.toml b/actix-connector/Cargo.toml index 870dc74..3e206a3 100644 --- a/actix-connector/Cargo.toml +++ b/actix-connector/Cargo.toml @@ -30,10 +30,9 @@ ssl = ["openssl", "tokio-openssl"] [dependencies] actix-service = "0.1.1" actix-codec = "0.1.0" -actix-rt = { path = "../actix-rt" } ...
3
3
4
de66b5c776444166c0a6a6e2e422f3bbdfdcc9c9
Nikolay Kim
2018-12-11T16:20:19
fix examples
diff --git a/Cargo.toml b/Cargo.toml index a327a7a..40e4831 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,13 @@ members = [ "actix-rt", "actix-utils", ] + +[dev-dependencies] +actix-service = "0.1.1" +actix-codec = "0.1.0" +actix-rt = { path="actix-rt" } +actix-server = { path="actix-server", features=["...
6
20
28
42ec3454d922e20275c68a3c759197fb2a51b309
Nikolay Kim
2018-12-11T05:06:54
add signals support
diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index 88516c5..c16de55 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -11,15 +11,14 @@ use net2::TcpBuilder; use num_cpus; use tokio_timer::sleep; -// use actix::{actors::signal}; - -use super::accept::{AcceptLoop,...
4
254
120
e6daca799555c6bfd1886bfcb7631ed0eab5b084
Nikolay Kim
2018-12-11T02:08:07
try to parse host first
diff --git a/actix-connector/src/resolver.rs b/actix-connector/src/resolver.rs index bb580ca..ae085e5 100644 --- a/actix-connector/src/resolver.rs +++ b/actix-connector/src/resolver.rs @@ -2,10 +2,8 @@ use std::collections::VecDeque; use std::marker::PhantomData; use std::net::IpAddr; -use futures::{Async, Future, ...
2
12
8
ffb07c8884eafaae17f578f2506d749ec86c01a3
Nikolay Kim
2018-12-10T05:51:35
use actix-rt for server impl
diff --git a/Cargo.toml b/Cargo.toml index fe73345..574ec31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,6 @@ rust-tls = ["rustls", "tokio-rustls", "webpki", "webpki-roots"] cell = [] [dependencies] -actix = "0.7.6" actix-service = "0.1.1" actix-codec = { path = "actix-codec" } actix-rt = { path = "acti...
14
275
297
cdd6904aa0f6ae05e442c6e274e32ccfb1487f31
Nikolay Kim
2018-12-10T04:30:04
rename Server to ServerBuilder
diff --git a/Cargo.toml b/Cargo.toml index 686103f..fe73345 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,6 +51,7 @@ cell = [] actix = "0.7.6" actix-service = "0.1.1" actix-codec = { path = "actix-codec" } +actix-rt = { path = "actix-rt" } log = "0.4" num_cpus = "1.0" diff --git a/actix-rt/src/arbiter.rs b/act...
7
83
42
227ea156835adf8068994e78dda89dc4312446f2
Nikolay Kim
2018-12-09T23:21:23
remove unused code
diff --git a/actix-codec/src/framed2.rs b/actix-codec/src/framed2.rs deleted file mode 100644 index 2bc3992..0000000 --- a/actix-codec/src/framed2.rs +++ /dev/null @@ -1,313 +0,0 @@ -#![allow(deprecated)] - -use std::fmt; -use std::io::{self, Read, Write}; - -use bytes::BytesMut; -use futures::{Poll, Sink, StartSend, S...
2
0
317
43e14818c4997fae12e8049d9149023d17f4a149
Nikolay Kim
2018-12-09T18:15:49
migrate to actix-service crate
diff --git a/Cargo.toml b/Cargo.toml index 90f7865..0981daf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,8 +47,7 @@ cell = [] [dependencies] actix = "0.7.6" -# actix-service = "0.1" -actix-service = { path="./actix-service" } +actix-service = "0.1.1" log = "0.4" num_cpus = "1.0" @@ -66,7 +65,6 @@ tokio-tcp =...
17
17
24
e8aa73a44bf2292632bf9203ddfffea6047c50bf
Nikolay Kim
2018-12-06T22:53:55
update tests
diff --git a/src/service/and_then.rs b/src/service/and_then.rs index dde1aae..f640975 100644 --- a/src/service/and_then.rs +++ b/src/service/and_then.rs @@ -219,7 +219,7 @@ mod tests { use std::rc::Rc; use super::*; - use service::{NewServiceExt, Service, ServiceExt}; + use crate::service::{NewService...
10
23
23
8fe7ce533c2b427cdfbd21882ec35982a2f50960
Nikolay Kim
2018-12-06T22:04:42
convert to edition 2018
diff --git a/Cargo.toml b/Cargo.toml index 2acf028..3194b6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ documentation = "https://docs.rs/actix-net/" categories = ["network-programming", "asynchronous"] license = "MIT/Apache-2.0" exclude = [".gitignore", ".travis.yml", ".cargo/config", "appveyor.yml"] ...
21
103
136
42a46796357dfda6e4683f23ae21738bd266662b
Nikolay Kim
2018-12-06T01:43:31
use FnMut for apply combinator
diff --git a/src/service/apply.rs b/src/service/apply.rs index 5eea744..2db9310 100644 --- a/src/service/apply.rs +++ b/src/service/apply.rs @@ -17,7 +17,7 @@ where impl<T, F, In, Out, Request> Apply<T, F, In, Out, Request> where T: Service<Request>, - F: Fn(In, &mut T) -> Out, + F: FnMut(In, &mut T) -> Ou...
2
10
10
36a15efeac3b8005e49e49b99036ff18ab6037a4
Nikolay Kim
2018-12-04T01:46:25
do not export cell
diff --git a/src/cell.rs b/src/cell.rs index 7f2e25a..0f45c08 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -7,8 +7,7 @@ use std::cell::{Ref, RefCell, RefMut}; use std::fmt; use std::rc::Rc; -#[doc(hidden)] -pub struct Cell<T> { +pub(crate) struct Cell<T> { #[cfg(feature = "cell")] inner: Rc<UnsafeCell<T>...
2
2
4
5937a06ebef412b69f5a12a9ef840eaf2823f964
Nikolay Kim
2018-12-03T21:49:46
export cell
diff --git a/src/cell.rs b/src/cell.rs index 855c6aa..7f2e25a 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -7,7 +7,8 @@ use std::cell::{Ref, RefCell, RefMut}; use std::fmt; use std::rc::Rc; -pub(crate) struct Cell<T> { +#[doc(hidden)] +pub struct Cell<T> { #[cfg(feature = "cell")] inner: Rc<UnsafeCell<T>...
2
11
8
a16ad6b2cd539989e8c196cdc84c18af95b4d876
Nikolay Kim
2018-11-30T19:55:30
cleanup clonable service
diff --git a/Cargo.toml b/Cargo.toml index f363840..2acf028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,7 +57,7 @@ tokio-tcp = "0.1" tokio-timer = "0.2" tokio-reactor = "0.1" tokio-current-thread = "0.1" -tower-service = { path="../../actix/tower/tower-service/" } +tower-service = { git = "https://github.com/tow...
2
19
12
29fe995a0215a311d0b06aafa81eaf77bf9f94ef
Nikolay Kim
2018-11-14T22:26:24
update version
diff --git a/Cargo.toml b/Cargo.toml index f7c0506..b7f1c1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-net" -version = "0.2.1" +version = "0.2.2" authors = ["Nikolay Kim <fafhrd91@gmail.com>"] description = "Actix net - framework for the compisible network services for Rust (ex...
1
2
2
c29501fcf362aaaf2e58d6f6a27eba7a180cd4a9
Nikolay Kim
2018-11-14T06:55:20
better name
diff --git a/src/codec/framed.rs b/src/codec/framed.rs index 74a204e..b05d7ab 100644 --- a/src/codec/framed.rs +++ b/src/codec/framed.rs @@ -127,7 +127,7 @@ impl<T, U> Framed<T, U> { } /// Check if write buffer is full. - pub fn is_full(&self) -> bool { + pub fn is_write_buf_full(&self) -> bool { ...
1
1
1
9a3321b15377df9371f414f029897583cc107808
Nikolay Kim
2018-11-14T05:33:10
allow to check if Framed's write buffer is full
diff --git a/src/codec/framed.rs b/src/codec/framed.rs index 968a968..74a204e 100644 --- a/src/codec/framed.rs +++ b/src/codec/framed.rs @@ -85,7 +85,12 @@ impl<T, U> Framed<T, U> { pub fn from_parts(parts: FramedParts<T, U>) -> Framed<T, U> { Framed { inner: framed_read2_with_buffer( - ...
2
37
4
f13a0925f7f1d6b606061fb839ad994750c31e1e
Nikolay Kim
2018-11-14T05:26:49
update defaults
diff --git a/src/codec/framed.rs b/src/codec/framed.rs index 59203ae..968a968 100644 --- a/src/codec/framed.rs +++ b/src/codec/framed.rs @@ -11,7 +11,7 @@ use tokio_io::{AsyncRead, AsyncWrite}; use super::framed_read::{framed_read2, framed_read2_with_buffer, FramedRead2}; use super::framed_write::{framed_write2, fram...
1
2
2
8886672ae6e1ae08856afd0fa2c9146c0f02169f
Nikolay Kim
2018-11-14T05:13:37
add write buffer capacity caps for Framed
diff --git a/src/codec/framed.rs b/src/codec/framed.rs index 388f10c..59203ae 100644 --- a/src/codec/framed.rs +++ b/src/codec/framed.rs @@ -11,6 +11,9 @@ use tokio_io::{AsyncRead, AsyncWrite}; use super::framed_read::{framed_read2, framed_read2_with_buffer, FramedRead2}; use super::framed_write::{framed_write2, fram...
3
55
34
8f20f695597cbb766d7eadffc4fcd3e68c5849f0
Nikolay Kim
2018-11-12T07:04:39
use RequestHost trait for OpensslConnector service
diff --git a/src/ssl/openssl.rs b/src/ssl/openssl.rs index 0355e5e..b945892 100644 --- a/src/ssl/openssl.rs +++ b/src/ssl/openssl.rs @@ -6,8 +6,8 @@ use tokio_io::{AsyncRead, AsyncWrite}; use tokio_openssl::{AcceptAsync, ConnectAsync, SslAcceptorExt, SslConnectorExt, SslStream}; use super::MAX_CONN_COUNTER; -use co...
1
23
23
9b9599500a534e7afb414edf041f6741965edb0b
Nikolay Kim
2018-11-12T05:12:30
refactor connector and resolver services
diff --git a/src/connector.rs b/src/connector.rs index 901b97b..8c8d85a 100644 --- a/src/connector.rs +++ b/src/connector.rs @@ -1,5 +1,6 @@ use std::collections::VecDeque; -use std::net::SocketAddr; +use std::marker::PhantomData; +use std::net::{IpAddr, SocketAddr}; use std::time::Duration; use std::{fmt, io}; @@...
2
83
43
a4b81a256c142eaa6f475fbbdf3c7e873e434471
Nikolay Kim
2018-11-09T02:45:40
remove debug output
diff --git a/Cargo.toml b/Cargo.toml index 82883e2..f7c0506 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-net" -version = "0.2.0" +version = "0.2.1" authors = ["Nikolay Kim <fafhrd91@gmail.com>"] description = "Actix net - framework for the compisible network services for Rust (ex...
2
1
2
bf9269de9a5cc6a4d06bada46007516573fece7c
Nikolay Kim
2018-11-08T05:20:50
reset delay instead of creating new one
diff --git a/src/keepalive.rs b/src/keepalive.rs index 39d0998..5ee0892 100644 --- a/src/keepalive.rs +++ b/src/keepalive.rs @@ -106,7 +106,7 @@ where if self.expire <= now { Err((self.f)()) } else { - self.delay = Delay::new(self.expire); + ...
1
1
1
bb34df8c1b26335274acaf25e6cd4d691b95322b
Nikolay Kim
2018-11-03T17:22:04
use configured token for service message
diff --git a/src/server/accept.rs b/src/server/accept.rs index bc16d9d..759d717 100644 --- a/src/server/accept.rs +++ b/src/server/accept.rs @@ -23,7 +23,6 @@ pub(crate) enum Command { struct ServerSocketInfo { addr: net::SocketAddr, token: Token, - handler: Token, sock: mio::net::TcpListener, t...
2
3
7
1ac018dc79caba074d914fab005a7259fcdf6e57
Nikolay Kim
2018-11-03T16:09:14
refactor server service configuration protcess
diff --git a/src/server/config.rs b/src/server/config.rs new file mode 100644 index 0000000..6fba8f9 --- /dev/null +++ b/src/server/config.rs @@ -0,0 +1,213 @@ +use std::collections::HashMap; +use std::{fmt, io, net}; + +use futures::future::{join_all, Future}; +use tokio_tcp::TcpStream; + +use counter::CounterGuard; +...
5
349
64
0e3d1068da34b499feb4d7542d7db5647149e1ec
Nikolay Kim
2018-11-01T22:33:35
separate stop worker channel
diff --git a/src/server/server.rs b/src/server/server.rs index 09e795d..834fa74 100644 --- a/src/server/server.rs +++ b/src/server/server.rs @@ -249,15 +249,16 @@ impl Server { } fn start_worker(&self, idx: usize, notify: AcceptNotify) -> WorkerClient { - let (tx, rx) = unbounded(); + let (tx1...
2
64
51
60144a3cb8c1baa5070ccd0d8730b0c77c5ed05a
Nikolay Kim
2018-11-01T19:25:03
update trust-dns
diff --git a/Cargo.toml b/Cargo.toml index 3f4a04a..aeba3e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,8 +58,8 @@ tokio-timer = "0.2" tokio-reactor = "0.1" tokio-current-thread = "0.1" tower-service = "0.1" -trust-dns-proto = "^0.5.0-alpha.3" -trust-dns-resolver = "^0.10.0-alpha.3" +trust-dns-proto = "^0.5.0" +...
1
2
2
6c25becd3f50d06e3cf567295025adf010b7ae5a
Nikolay Kim
2018-11-01T18:03:03
impl Clone for TakeItem and TakeItemService
diff --git a/src/stream.rs b/src/stream.rs index bee5ec6..5b08f44 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -103,6 +103,12 @@ impl<T> TakeItem<T> { } } +impl<T> Clone for TakeItem<T> { + fn clone(&self) -> TakeItem<T> { + TakeItem { _t: PhantomData } + } +} + impl<T: Stream> NewService for...
1
12
0
dc19a9f862ec7de82f1351d2d5c29e8fd501c799
Nikolay Kim
2018-10-30T03:29:47
refactor Resolver service
diff --git a/examples/basic.rs b/examples/basic.rs index f31b6d7..8162fcc 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -80,8 +80,7 @@ fn main() { future::ok(()) }) }, - ) - .unwrap() + ).unwrap() .start(); sys.run(); di...
14
107
134