Skip to content
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

Tokio reform #165

Closed
FreeFull opened this issue Feb 13, 2018 · 11 comments
Closed

Tokio reform #165

FreeFull opened this issue Feb 13, 2018 · 11 comments

Comments

@FreeFull
Copy link
Contributor

With the recent tokio reform, tokio-core has been deprecated in favour of the tokio crate. It would be nice to migrate over; There have been some breaking changes, but at first glance it doesn't seem like it'll be too hard.

@davidtwco
Copy link

Without this, using rust-websocket in tandem with any other crate that has switched to tokio from tokio-core becomes challenging as Cargo struggles to resolve the dependencies.

@enzious
Copy link

enzious commented Mar 14, 2018

So... I got a fork working with the latest hyper (switched to httparse though) and tokio reform:
https://github.com/enzious/rust-websocket

I wouldn't call it a quality job but it's working for me so far on the project I'm using it for. The only thing failing atm is doc tests.

Maybe some of my dabbling will help :)

@enzious
Copy link

enzious commented Mar 14, 2018

@illegalprime

@tinaun
Copy link

tinaun commented Mar 30, 2018

@enzious any idea how much work it would take to upgrade to futures 0.2?

@enzious
Copy link

enzious commented Apr 11, 2018

@tinaun Apparently futures 0.2 is not going to last long so waiting until 0.3 seems best:

tokio-rs/tokio#312

@mati865
Copy link
Contributor

mati865 commented Aug 8, 2018

@enzious if your work is nearly done you could open PR and hopefully somebody competent would review it.

@illegalprime
Copy link
Collaborator

@enzious I'll review it if you make a PR

@Jannis
Copy link

Jannis commented Sep 1, 2018

I second the request to move from tokio_core to tokio. I've been trying to integrate websocket into a project based on tokio but couldn't get it to work:

  1. Using the async Server doesn't work because it takes an old tokio_core::reactor::Handle.
  2. Manually implementing a stream of async upgrades and spawning their accept/reject futures using tokio::spawn doesn't work because those futures do not satisfy the Send trait.

I would appreciate a migration that works with futures 0.1 and the latest tokio. I'm happy to test and review any time.

@omarabid
Copy link
Contributor

So is there any progress on this one?

@FreeFull
Copy link
Contributor Author

Given #199 has been merged, is there anything left to do now? Or can the issue be closed?

@vi
Copy link
Member

vi commented Jan 1, 2019

Probably can be closed.


Next on the line is Hyper reform. Hyper 0.12 seems to be another http library, not just next version of Hyper 0.10. Some low-level abilities seem to be missing.

Maybe rust-websocket should be based not on hyper, but on something else?

@FreeFull FreeFull closed this as completed Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants