-
Notifications
You must be signed in to change notification settings - Fork 48
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
Simple pipe-server hanging forever #15
Comments
Ah, I figured it out. The first time tokio-named-pipe relies on the mio registration taking place during In the earlier version of tokio, there is a |
@hankbao Hi,I also encountered this problem, is there any fix? |
I just use |
458: Bump jsonrpc-core-client from 13.2.0 to 14.0.0 r=tomtau a=dependabot-preview[bot] Bumps [jsonrpc-core-client](https://github.com/paritytech/jsonrpc) from 13.2.0 to 14.0.0. <details> <summary>Commits</summary> - [`7b94363`](paritytech/jsonrpc@7b94363) Bump to 14.0 ([#496](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/496)) - [`3b790c6`](paritytech/jsonrpc@3b790c6) Fix threading and closing of servers ([#495](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/495)) - [`d8cfec5`](paritytech/jsonrpc@d8cfec5) Run format only on stable @ linux. ([#494](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/494)) - [`77d7fb6`](paritytech/jsonrpc@77d7fb6) fix for [#490](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/490), related to [paritytech/parity-tokio-ipc#15](https://github-redirect.dependabot.com/NikVolf/parity-tokio-ipc/issues/15) ([#491](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/491)) - See full diff in [compare view](paritytech/jsonrpc@v13.2.0...v14.0.0) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=jsonrpc-core-client&package-manager=cargo&previous-version=13.2.0&new-version=14.0.0)](https://dependabot.com/compatibility-score.html?dependency-name=jsonrpc-core-client&package-manager=cargo&previous-version=13.2.0&new-version=14.0.0) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
442: Problem: (CRO-145) no HD-wallet support r=tomtau a=leejw51crypto Solution: add bip 39, 44 cargo, and modify to use it connect hdwallet connect basic key service choose hdkey hd wallet works add mnemonics functions add wallet kind in constructing wallet hdwallet & mnemonics works decouple wallet kind to setup first client-cli now works refactoring process basic wallet hide logs tidy up fix clippy issues fix clippy issue 460: Bump jsonrpc-derive from 13.2.0 to 14.0.0 r=tomtau a=dependabot-preview[bot] Bumps [jsonrpc-derive](https://github.com/paritytech/jsonrpc) from 13.2.0 to 14.0.0. <details> <summary>Commits</summary> - [`7b94363`](paritytech/jsonrpc@7b94363) Bump to 14.0 ([#496](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/496)) - [`3b790c6`](paritytech/jsonrpc@3b790c6) Fix threading and closing of servers ([#495](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/495)) - [`d8cfec5`](paritytech/jsonrpc@d8cfec5) Run format only on stable @ linux. ([#494](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/494)) - [`77d7fb6`](paritytech/jsonrpc@77d7fb6) fix for [#490](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/490), related to [paritytech/parity-tokio-ipc#15](https://github-redirect.dependabot.com/NikVolf/parity-tokio-ipc/issues/15) ([#491](https://github-redirect.dependabot.com/paritytech/jsonrpc/issues/491)) - See full diff in [compare view](paritytech/jsonrpc@v13.2.0...v14.0.0) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=jsonrpc-derive&package-manager=cargo&previous-version=13.2.0&new-version=14.0.0)](https://dependabot.com/compatibility-score.html?dependency-name=jsonrpc-derive&package-manager=cargo&previous-version=13.2.0&new-version=14.0.0) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> 463: Problem: (CRO-452) Byzantine validators are not jailed r=tomtau a=devashishdxt Solution: Jail byzantine validators in begin block Co-authored-by: Jongwhan Lee <jonghwan@crypto.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Devashish Dixit <devashish@crypto.com>
Thanks for providing this crate. I'm new to rust and tokio, so please forgive me if this looks dumb.
However, I encountered a hanging issue when using it on Windows. I'm building an
IpcServer
as aFuture
from anIncoming
and then I run it with tokio. I got an IPC client which can connect (withCreateFile
) to the pipe successfully. The client can even write to the pipe asynchronously. ButIpcServer::poll
never fires again except for the first time.I'm pretty sure this is related to my code. Would you please kindly point it out? Thanks.
The text was updated successfully, but these errors were encountered: