Skip to content

Upgrading libevent to latest commit#11137

Merged
htuch merged 2 commits intoenvoyproxy:masterfrom
adisuissa:libevent_upgrade
May 14, 2020
Merged

Upgrading libevent to latest commit#11137
htuch merged 2 commits intoenvoyproxy:masterfrom
adisuissa:libevent_upgrade

Conversation

@adisuissa
Copy link
Copy Markdown
Contributor

Upgrading libevent to solve phantom event bug - an event that was triggered after closing connections.

Risk Level: Low-medium - basic functionality hasn’t changed, but there might be a few corner cases and performance that will be affected.
Testing: None added

Signed-off-by: Adi Suissa-Peleg adip@google.com

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa
Copy link
Copy Markdown
Contributor Author

If you think of any benchmarks that should be run, I'm happy to do so.

@wrowe
Copy link
Copy Markdown
Contributor

wrowe commented May 11, 2020

This looks like legit breakage upstream to the windows platform. We can investigate this early this week, should have an answer at some point today or tomorrow.

@wrowe
Copy link
Copy Markdown
Contributor

wrowe commented May 11, 2020

This is not a regression per se, but a new additional prerequisite. Try adding the following patch to pass on windows...

diff --git a/bazel/envoy_binary.bzl b/bazel/envoy_binary.bzl
index ac15656af..e53e42d8e 100644
--- a/bazel/envoy_binary.bzl
+++ b/bazel/envoy_binary.bzl
@@ -61,6 +61,7 @@ def _envoy_linkopts():
         "@envoy//bazel:windows_x86_64": [
             "-DEFAULTLIB:advapi32.lib",
             "-DEFAULTLIB:ws2_32.lib",
+            "-DEFAULTLIB:iphlpapi.lib",
             "-WX",
         ],
         "//conditions:default": [
diff --git a/bazel/envoy_test.bzl b/bazel/envoy_test.bzl
index 222cb99e6..dff388c5d 100644
--- a/bazel/envoy_test.bzl
+++ b/bazel/envoy_test.bzl
@@ -58,6 +58,7 @@ def _envoy_test_linkopts():
         "@envoy//bazel:windows_x86_64": [
             "-DEFAULTLIB:advapi32.lib",
             "-DEFAULTLIB:ws2_32.lib",
+            "-DEFAULTLIB:iphlpapi.lib",
             "-WX",
         ],

@adisuissa
Copy link
Copy Markdown
Contributor Author

Thanks @wrowe!
Will do so, and resubmit.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Copy link
Copy Markdown
Member

@lizan lizan left a comment

Choose a reason for hiding this comment

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

LGTM, @htuch?

Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@htuch htuch merged commit ed6a1b8 into envoyproxy:master May 14, 2020
buildbreaker pushed a commit to envoyproxy/envoy-mobile that referenced this pull request Jul 2, 2020
…nvoy (#937)

We're reverting the libevent version bump from upstream envoy to avoid the commit which introduced a usage of `pthread_mutexattr_setprotocol`. The libevent change is [here](libevent/libevent@f76456b). The upstream envoy change was primarily targeted for windows.


Upstream change for updating libevent: envoyproxy/envoy#11137
Addressing missing symbol: #934
Will need to lower to 21: #936

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: android: fixate to API 24 and use old libevent version for upstream envoy
Risk Level: low
Testing: ci
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]
jpsim pushed a commit that referenced this pull request Nov 28, 2022
…nvoy (#937)

We're reverting the libevent version bump from upstream envoy to avoid the commit which introduced a usage of `pthread_mutexattr_setprotocol`. The libevent change is [here](libevent/libevent@f76456b). The upstream envoy change was primarily targeted for windows.

Upstream change for updating libevent: #11137
Addressing missing symbol: envoyproxy/envoy-mobile#934
Will need to lower to 21: envoyproxy/envoy-mobile#936

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: android: fixate to API 24 and use old libevent version for upstream envoy
Risk Level: low
Testing: ci
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
…nvoy (#937)

We're reverting the libevent version bump from upstream envoy to avoid the commit which introduced a usage of `pthread_mutexattr_setprotocol`. The libevent change is [here](libevent/libevent@f76456b). The upstream envoy change was primarily targeted for windows.

Upstream change for updating libevent: #11137
Addressing missing symbol: envoyproxy/envoy-mobile#934
Will need to lower to 21: envoyproxy/envoy-mobile#936

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: android: fixate to API 24 and use old libevent version for upstream envoy
Risk Level: low
Testing: ci
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.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.

4 participants