Skip to content

Initial implementation of WiSH in C++#17

Merged
tyoshino merged 2 commits intomainfrom
tyoshino/wish
Feb 19, 2026
Merged

Initial implementation of WiSH in C++#17
tyoshino merged 2 commits intomainfrom
tyoshino/wish

Conversation

@tyoshino
Copy link
Collaborator

@tyoshino tyoshino requested a review from wenbozhu February 19, 2026 02:05
@google-cla
Copy link

google-cla bot commented Feb 19, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@tyoshino
Copy link
Collaborator Author

signed CLA

#include "../src/wish_handler.h"

int main() {
struct event_base *base = event_base_new();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me change the indentation to comply with the Google C++ Style Guide by a separate PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG


FetchContent_Declare(
wslay
GIT_REPOSITORY https://github.com/tatsuhiro-t/wslay.git
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a local patch on this not included in this PR that skips masking validation. I'll think about how to include it later.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

started with only CMake. good to have Bazel, too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's start with CMake. Ultimately we want this to work with the Python toolchain?


FetchContent_Declare(
libevent
GIT_REPOSITORY https://github.com/libevent/libevent.git
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

started with libevent. We may want to revisit this after studying what to do with Python binding, etc.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wish codec should be based on wslay ... and then it should work with any http client/server?

net_http's httpserver uses libevents for both I/O and http/1.1.

Copy link
Collaborator

@wenbozhu wenbozhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!!

Copy link
Collaborator Author

@tyoshino tyoshino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

GIT_TAG master
)
# Disable OpenSSL and other heavy features for libevent to keep build fast/simple if possible
set(EVENT__DISABLE_OPENSSL ON CACHE BOOL "" FORCE)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wenbozhu I guess this is what you mentioned in the meeting about disabling TLS.

It's generated code which I didn't take a close look. I'll review these.

@tyoshino tyoshino merged commit cc0c623 into main Feb 19, 2026
2 checks passed
@tyoshino tyoshino deleted the tyoshino/wish branch February 19, 2026 12:40
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

Successfully merging this pull request may close these issues.

2 participants

Comments