Closed c0gent closed 6 years ago
added appveyour here as well, please rebase, sorry for CI issues!
No problem :)
appveyor failed ^^
Hmm, I'll have a look...
Oh... recent changes added new windows stuff... I'll take care of it.
Restarted CI check.
Am I correct in saying that the tests on Windows spuriously fail and/or hang? They have done so for me even before I made any changes.
Well no, last time I checked, now I don't have windows
You see, this build is ok:
https://ci.appveyor.com/project/NikolayVolf/parity-tokio-ipc/build/1.0.3
I'll run it few times to see if there are non-deterministic failures
So far every b4a6cdf7 commit build is a success... https://ci.appveyor.com/project/NikolayVolf/parity-tokio-ipc/history
Interesting... I'll see what I can figure out.
I've temporarily added a timeout to ipc pipe creation. Let me know if I should leave it in or not.
~The intermittent stalling / failures must be a result of having multiple threads attempting to access the Windows file handles at the same time (now that everything runs on a multi-threaded runtime). I think what I'm going to have to do is add back the handle
argument to tokio_named_pipes::NamedPipe::new
, ::from_pipe
, etc. and also to parity_tokio_ipc::IpcConnection::connect
. That way, a single reactor handle can be used to create them in a single-threaded fashion once again.~
I'm not sure what the problem is yet. I don't see how anything I've changed would affect named pipe creation.
Using a reactor handle for NamedPipe
creation did the trick. Apparently this is important for coordination with tokio::reactor::PollEvented2
on Windows due to the single-threadyness needed.
cool, just a couple of minor issues
Will update dependency as soon as https://github.com/NikVolf/tokio-named-pipes/pull/2 is merged.
Also instead of creating a stable
branch, I'd create a separate branch for each version. Or use tags instead of branches.
@c0gent we'll leave this version management to cargo once it will be published on crates.io
@NikVolf I assume you're fine with taking over the tokio-named-pipes
crate, yeah? I'll help maintain if needed.
Aye, and I don’t see any problems doing it in current gh state
I will change the dependency path back to the original location once https://github.com/NikVolf/tokio-named-pipes/pull/1 is merged.