-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example: add more examples #91
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nits before we can land this
examples/monoio_tlsclient.rs
Outdated
} | ||
} | ||
|
||
unsafe impl Send for HyperConnection {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a safety comment here as to why this is safe?
examples/monoio_tlsclient.rs
Outdated
} | ||
|
||
use std::pin::Pin; | ||
// struct HyperConnection(monoio::net::tcp::stream_poll::TcpStreamPoll); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// struct HyperConnection(monoio::net::tcp::stream_poll::TcpStreamPoll); |
examples/monoio_tlsclient.rs
Outdated
// !!!!! do not use proxychains or other proxy tools, the tcp steam connect may be failed !!!! | ||
let uri: Uri = "data-stream.binance.com".parse::<hyper::Uri>().unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should connect to a local echo server instead of a remote service like binance.
this is decided by monoio runtime features, and the safe reason can checkout bytedance/monoio#218 |
No description provided.