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

Remove libnice and glib #1505

Merged
merged 5 commits into from
Nov 27, 2019
Merged

Remove libnice and glib #1505

merged 5 commits into from
Nov 27, 2019

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Nov 27, 2019

Description
We have been using NiceR for 2+ years without problems. This PR removes the libnice alternative, reducing the maintenance work and the testing that is required to maintain 2 libraries for IO. As a bonus, it should reduce image size and build time in some cases.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

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

This PR is awesome! we will get rid of a biiiig dependency (GLIB) 🎉

@@ -54,13 +54,13 @@ check_result() {
install_homebrew_from_cache(){
if [ -f cache/homebrew-cache.tar.gz ]; then
tar xzf cache/homebrew-cache.tar.gz --directory /usr/local/Cellar
brew link glib pkg-config boost cmake yasm log4cxx gettext coreutils
brew link pkg-config boost cmake yasm log4cxx gettext coreutils
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -1,5 +1,5 @@
/*
* LibNiceConnection.h
* IceConnection.h
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -55,7 +55,7 @@ unsigned long ssl_thread_id() { // NOLINT
}
#else
void ssl_thread_id(CRYPTO_THREADID *id) { // NOLINT
CRYPTO_THREADID_set_numeric(id, (unsigned long)std::hash<std::thread::id>()(std::this_thread::get_id()); // NOLINT
CRYPTO_THREADID_set_numeric(id, (unsigned long)std::hash<std::thread::id>()(std::this_thread::get_id())); // NOLINT
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 good catch!

@@ -68,8 +66,8 @@ class IceConfig {
turn_port{0},
min_port{0},
max_port{0},
should_trickle{false},
use_nicer{false} {
Copy link
Contributor

Choose a reason for hiding this comment

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

💯

erizoAPI/WebRtcConnection.cc Show resolved Hide resolved
@lodoyun lodoyun merged commit 4128c9c into lynckia:master Nov 27, 2019
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
@lodoyun lodoyun deleted the add/removeLibnice branch February 6, 2024 14:39
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