-
Notifications
You must be signed in to change notification settings - Fork 229
Make openssl optional dependency #90
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
Conversation
Hacks: * Dummy SslContext * Trickery in secure server doctest * Sha1 used from other crate instead of openssl (even openssl enabled)
|
Maintainer seems to be MIA. Maybe time to fork? |
|
@bgourlie, Are you interested in this and/or #91 being on crates.io sooner? My next ideas for rust-websocket:
I currently have a reminder for thinking about forking rust-websocket if no maintainer replies set at 2017-02-01. P.S.: Implemented by app "websocat" using this library. Pre-built versions are with the pull requests included. |
|
I don't have an urgent need for this to be on crates.io. I'm currently using this crate as a stop-gap measure in a personal project, and not being able to compile on Windows due to the open-ssl dependency is a minor pain. Long-term, I'd like something built on top of tokio. I've been been waiting for the tokio ecosystem to stabilize before attempting to build a websocket library on top of it, but it sounds like that time might be near. I think that forking this library for quality-of-life improvements is still worth it (assuming the original maintainer doesn't suddenly appear), but I really think that the rust ecosystem needs a websocket library built on top of futures/tokio. |
|
So I attempted to use this branch, turning off the default ssl dependency, and I get a stackoverflow when running my app. Any idea what could cause that? |
|
Note: my fork of Do you have a backtrace? I don't imagine how usage nossl mode can produce stack overflow. Do you have minimal example of reproducing the problem? |
|
So this is how I'm currently configuring the websocket dependency:
Unfortunately, there is no backtrace. It's a hard crash on Windows, hangs indefinitely on Linux: Same results using the I can try to provide a minimal reproduction, but it will take me a while. In the meantime you can see how I'm using it in practice here. I looked over the changes made in your |
|
Before you put any effort into looking into this, let me do a few more things for due diligence. |
|
So, after a little more research:
So, I'm doing something funky here that is triggering this issue, and it only affects Windows. I'll try to find a minimal repro. |
|
You can now use |
|
It will be nice to have an actively maintained version of this library. Are you able to have your own issue tracker on a cloned repository? That way we could move the discussion away from this repo. |
|
Oh, forgot that issues are disabled by default on forks... |
|
Neither of those are really needed for my particular use-case. My ideal websocket library would be built on top of tokio, mostly because have a single thread managing all websocket events in conjunction with tokio's channel implementation would greatly simplify my code. It's something I'd like to eventually start implementing, but I'm waiting for tokio, et-al to stabilize a bit. |
|
I never tried Tokio myself yet. Basically I dealed with |
|
Tokio is working on a backpressure strategy for their next release. If you haven't already, I'd suggest reading the original tokio announcement. |
|
@vi thanks for the work, I'll look over these soon |
|
Note: I've already forked and published it under the name If necessary changes (including some analogue of vi#2) get integrated here then the fork may be discontinued. |
|
@vi yeah I saw, would you be open to merging the two projects? |
|
@illegalprime , Yes. All advancements should already be in pull requests (except of the link in previous comment). |
|
@vi love to talk about ideas for the future of this crate since you mentioned you had some |
Hacks: