Kam Y. Tse

Results 19 comments of Kam Y. Tse

Hi, @briansmith I am trying to implement the `X25519StaticKeyPair`, what I want to do is the following: Introduce a struct name `X25519StaticPair` as you mentioned above, ``` rust pub struct...

Seems this issues related to [tokio-io](https://github.com/tokio-rs/tokio-io), I think you can get some logs like `attempting to decode a frame` and `attempting to decode a frame` if you open the `trace`...

@khaledkbadr Can you provide your code snippet and the current `trace` level log you got?

Guide to enable logger: - Add this line `pretty_env_logger = "0.1"` to your `Cargo.toml` under `[dependencies]` entry - Add `extern crate pretty_env_logger;` to `main.rs` - Finally, add `pretty_env_logger::init().unwrap();` at the...

Notice those lines: `TRACE:tokio_io::framed_read : attempting to decode a frame` If succeed in decoding something, you can see the following pair: ``` TRACE:tokio_io::framed_read : attempting to decode a frame ......

If you return an error in `decode` function, the connection would be closed silently. So, for now, what is your problem?

In my opinion, if your `decode` function returns an error, that means your server got into trouble when handling this request, I think closing the connection is right behavior. If...

You can add `error!(".....")` in your `decode()` function. cc @alexcrichton Should we add `error!("....")` in [tokio-io::framed_read](https://github.com/tokio-rs/tokio-io/blob/master/src/framed_read.rs#L274) to log this error?

@A4Vision No problem there. Some advice: 1. If you want to translate `Option` to a `Result`, use `optional_value.ok_or(Err)`. Take a look at the `Option::ok_or(..)` might be helpful. 2. If you...

1) I sent an e-mail to BrainSmith several hours ago, want to know his consideration about the story of zeroization in the `ring`, but no reply. 2) `Rand128` and `Rand256`...