tokio-ping icon indicating copy to clipboard operation
tokio-ping copied to clipboard

Rebased #12 - Updated to Rust 2018, ran Rustfmt, and fixed Clippy lints

Open usbalbin opened this issue 6 years ago • 12 comments

This is simply a rebased version of PR #12 thus all credit to the author of that PR.

Please note that I do not wish to step on anyone's toes :)

usbalbin avatar Dec 14 '19 00:12 usbalbin

In my local fork of this repo I have converted from 0.1 futures and tokio 0.1 to std futures with async await and tokio 0.2 . However this depends on this PR. Would there be any interest in me submitting a PR?

usbalbin avatar Dec 29 '19 21:12 usbalbin

Just came here to say that your fork works pretty well, first tried integrating this into a project, but after several incompatibility hurdles with the current ecosystem, I switched to your fork and it all became quite easy then. Thanks for your work!

jcgruenhage avatar Apr 07 '20 09:04 jcgruenhage

Is there any movement on this? Is this crate essentially dead?

endeav0r avatar Dec 18 '20 17:12 endeav0r

I'm still waiting for a review

usbalbin avatar Dec 18 '20 17:12 usbalbin

@usbalbin ooi, have you by chance tried getting this to run on tokio 1? I've tried my best to port it to tokio 1 but while it does compile, after the first pong per chain it just times out forever. My changes are available on https://github.com/jcgruenhage/tokio-ping, in the wip commit on the master branch

With the help of the tokio-users discord channel, I've found what my problem was and now, it does actually work. I've started to do some more clean-up on tokio-ping (stuff bumping the remaining deps, fixing formatting, replacing failure with thiserror and so on), and unless @knsd wants to pick this up again, I'll probably go off and fork this.

jcgruenhage avatar Apr 19 '21 22:04 jcgruenhage

So, no reply here, no reply to the email I wrote last week: Do we want to go ahead and fork this? Any suggestions for a new crate name for crates.io?

jcgruenhage avatar Apr 27 '21 14:04 jcgruenhage

Sorry for late response.

I can not speak for @knsd but to me a fork sounds like a plan :) What about just async_ping?

usbalbin avatar Apr 27 '21 17:04 usbalbin

Sorry for late response.

No worries, I saw your :+1:, I meant more "no response from upstream".

I can not speak for @knsd but to me a fork sounds like a plan :) What about just async_ping?

I dislike that a bit, because async_ping sounds runtime agnostic to me, which this is very much not. Considering we're (on a lower level) using ICMP echo requests for pinging, maybe tokio-icmp-echo? That's a bit obscure, so it hurds SEO, but with adding the keywords it should still be doable to pull over existing users.

jcgruenhage avatar Apr 27 '21 17:04 jcgruenhage

I dislike that a bit, because async_ping sounds runtime agnostic to me, which this is very much not.

That is fair.

Considering we're (on a lower level) using ICMP echo requests for pinging, maybe tokio-icmp-echo? That's a bit obscure, so it hurds SEO, but with adding the keywords it should still be doable to pull over existing users.

tokio-icmp-echo might not be the most flashy name, however it is accurate

usbalbin avatar Apr 27 '21 18:04 usbalbin

And done: https://crates.io/crates/tokio-icmp-echo. It's available under https://github.com/jcgruenhage/tokio-icmp-echo. @usbalbin I've invited you as a collaborator on the repo and on the crate on crates.io

jcgruenhage avatar Apr 27 '21 18:04 jcgruenhage

And done: https://crates.io/crates/tokio-icmp-echo. It's available under https://github.com/jcgruenhage/tokio-icmp-echo. @usbalbin I've invited you as a collaborator on the repo and on the crate on crates.io

I can not promise how much time I will be able to set aside for this but I would be happy to do what I can. :)

usbalbin avatar Apr 28 '21 08:04 usbalbin

No worries there, I don't know that either, I just don't want to be alone on this so that the probability of no one answering MRs for years like it happened here is lower ^^

Having 2-3 people with write access means that even when one of them is hit by a bus, the others can keep going.

jcgruenhage avatar Apr 28 '21 09:04 jcgruenhage