infinyon / future-aio Goto Github PK
View Code? Open in Web Editor NEWAdvanced futures library
License: Apache License 2.0
Advanced futures library
License: Apache License 2.0
To make Connection metadata OS independent
This can be used in TLS proxy. Some of technology we should leverage
Probably we should move to memmap2
This would be nice because it makes running clippy --all-features
on downstream projects difficult.
Current implementation of sleep doesn't allow borrow which prevents use in the loop as below:
let mut sleep_ft = sleep(Duration::from_millis(10));
loop {
select! {
_ = &mut sleep_ft => {
break;
}
}
}
see: infinyon/fluvio#1520
Send_file can go into infinite loop discovered during investigation of: infinyon/fluvio#2116.
This is caused by not handling EOF case
https://github.com/infinyon/future-aio/runs/3451458165?check_suite_focus=true.
Commented this out so we don't block CI process
Ensure flv-future-aio compiles and run in non unix platform. Features like Zero copy should be only be enabled in the unix platforms.
if zero copy didn't completed in a first attempt, it hangs. This is due to extra offset update.
Should re-write tests at
Line 114 in e97957e
On a blank node-bindgen repo I ran nj-cli build
and the build failed with:
error[E0433]: failed to resolve: use of undeclared type or module `futures_lite`
--> /home/nick/.cargo/registry/src/github.com-1ecc6299db9ec823/fluvio-future-0.1.10/src/timer.rs:10:9
|
10 | use futures_lite::future::Future;
| ^^^^^^^^^^^^ use of undeclared type or module `futures_lite`
Looks like the timer feature needs futures_lite
but does not enable it.
rustls version 0.20 has non compatible API changes.
Usage of RawFd
prevents compilation on windows.
We should add windows compilation in CI to catch this.
To support ignore, attribute, we need to enhance async_test
macro as below:
#[async_test(ignore)]
async fn fn_to_test
will be expanded as
#[test]
#[ignore]
fn wrapper_test_fn() {
... async wrapper
async fn fn_test_ {
}
}
also separate test
attribute which remove unneeded for result which means you can write:
#[fluvio_future::test(ignore)]
async fn my_test() {
assert!("a".len(),1);
}
Following on infinyon/fluvio#2216
We may want to support partial CA "Trust anchors" that are mediated by the intermediate CA certs under another CA.
Intermediate CAs are used to compartmentalize issuance and management in certain configurations.
However managing the full client CA chain in this case would become logistically cumbersome and the industry has moved to generally accept using intermediate CAs on the client end -
This follows the default Curl and typical kubectl behaviour.
Test scope to be added:
Potentially also we need integration tests that integrate with a real k8s cluster against different setups.
I think it is convention to log to stderr and reserve stdout for structured output. See issue tokio-rs/tracing#2492
Async dispatcher is simplest actor possible. It just implement async dispatch loop.
It will be added as unstable feature
similar to #[fluvio_future::test]
but support non async function.
#[cfg(test)]
mod test {
// same as cargo test but initialize logging
#[fluvio_future::test]
fn test_add() {
assert_eq!(1+1,2);
}
// uses async runtime
#[fluvio_future::test]
async fn test_add() {
assert_eq!(1+2);
}
}
as part of 0.3.10, windows
test has been disabled due to issue with certs generation. this need to be restored
Unit tests sometimes run endlessly (hits 5 minute timeout). Error message seemed to indicate zero-copy test. https://github.com/infinyon/future-aio/runs/1318014539?check_suite_focus=true
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.