-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix splice_impl
and tee_impl
: Fix readiness and make returned fut Send
#28
Conversation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Wow! That was fast! |
Not it compiles fine for me! |
splice_impl
: Make the ret fut to be Send
splice_impl
: Make the returned fut to be Send
splice_impl
: Make the returned fut to be Send
splice_impl
: Make the returned Future to be Send
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
splice_impl
: Make the returned Future to be Send
splice_impl
and tee_impl
: Fix readiness and make returned fut Send
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #28 +/- ##
==========================================
- Coverage 81.93% 76.13% -5.81%
==========================================
Files 1 1
Lines 620 683 +63
==========================================
+ Hits 508 520 +12
- Misses 112 163 +51
Continue to review full report at Codecov.
|
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
6dc30ea
to
a5f0331
Compare
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
a5f0331
to
03e5289
Compare
by issueing a read/write of zero size. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
by issueing a read/write of zero size. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Do not use `as_mut_slice` method of array. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
After testing it a bit more with |
I think you can use |
Yeah, of course. Trying to debug it. |
strace logs before it locked up:
that last line is really truncated like that |
@pkolaczk Looks like it's keep issueing The syscalls showed in your comments all have timeout set to I am not sure on what caused it to happen. |
The problem is, there is no code running except that one single loop I showed you, and the main loop that waits for the next connection.
|
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
It doesn't lock up after the fix. |
@pkolaczk Is there any other regressions/bugs you encountered or any performance-wise problem? |
At the moment it looks like it works, but I haven't tested it very extensively. One thing that blocks me from testing it better is the fact that this crate forces me to use a different representation of my streams, instead of just the Having said that, this PR is already a huge improvement over what was before, so I'm for merging it and maybe let's address the API thing and eventual perf improvements in a separate PR? |
@yskszk63 Can you review this PR please? |
It has been released as v0.2.12. |
Fixed #26
Fix:
splice_impl
: Make auto-generatedFuture
to beSend
.splice_impl
: Fix readiness detection usingtest_read_write_readiness
tee_impl
: Fix readiness detection usingtest_read_write_readiness
test_read_write_readiness
: Implemented usinglibc::poll
Signed-off-by: Jiahao XU Jiahao_XU@outlook.com