-
Notifications
You must be signed in to change notification settings - Fork 230
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
pass part echo CI in windows #248
Conversation
monoio/src/driver/op/read.rs
Outdated
let error = unsafe { WSAGetLastError() }; | ||
return Err(std::io::Error::from_raw_os_error(error)); | ||
Err(io::Error::from_raw_os_error(error)) |
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.
monoio/src/driver/op/read.rs
Outdated
&mut bytes_recved, | ||
std::ptr::null_mut(), | ||
&mut bytes_received, | ||
&mut 0, |
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.
The lpFlags here is used as both in and out. So it has to be able to read and write.
Have you tried to implement it like rust std? In std impl, it declare 2 temp variable nread and flags, and then pass the mut references.
https://github.com/rust-lang/rust/blob/master/library/std/src/sys/pal/windows/net.rs#L253
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.
No description provided.