Skip to content

Support multiple versions of the Proxy-Wasm ABI.#45

Merged
PiotrSikora merged 4 commits intoproxy-wasm:envoy-release/v1.15from
PiotrSikora:dual_abi-envoy-v1.15
Aug 4, 2020
Merged

Support multiple versions of the Proxy-Wasm ABI.#45
PiotrSikora merged 4 commits intoproxy-wasm:envoy-release/v1.15from
PiotrSikora:dual_abi-envoy-v1.15

Conversation

@PiotrSikora
Copy link
Member

Signed-off-by: Piotr Sikora piotrsikora@google.com

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@PiotrSikora PiotrSikora marked this pull request as ready for review August 3, 2020 00:58
@PiotrSikora PiotrSikora requested a review from jplevyak August 3, 2020 00:58
src/wasm.cc Outdated
_REGISTER_PROXY(set_property);
_REGISTER_PROXY(get_property);

_REGISTER_PROXY(continue_request);
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these be conditional based on the version?

Copy link
Member Author

@PiotrSikora PiotrSikora Aug 3, 2020

Choose a reason for hiding this comment

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

See envoyproxy/envoy-wasm#596 (comment):

Note, that because we register/expose host functions before linking, we don't know the exported ABI version marker at that point, so we expose host functions for both 0.1.0 and 0.2.0 version of the ABI (since they are not conflicting), and the switching is only happening for the callbacks.

We could expose host functions only for the requested ABI version, but that would require some invasive rewrites to the code that I'm not willing to make just before the release.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@PiotrSikora PiotrSikora requested a review from jplevyak August 4, 2020 08:07
@PiotrSikora PiotrSikora changed the title Support both: 0.1.0 and 0.2.0 versions of the Proxy-Wasm ABI. Support multiple versions of the Proxy-Wasm ABI. Aug 4, 2020
@PiotrSikora PiotrSikora merged commit 5659383 into proxy-wasm:envoy-release/v1.15 Aug 4, 2020
PiotrSikora added a commit to PiotrSikora/proxy-wasm-cpp-host that referenced this pull request Aug 10, 2020
Broken in proxy-wasm#45.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
PiotrSikora added a commit that referenced this pull request Aug 10, 2020
Broken in #45.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
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