This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Repository navigation
dtls server quick connection fix - #38
Merged
j1elo merged 4 commits intoJul 7, 2022
Merged
Conversation
(cherry picked from commit acadb81a575c3f531297fce98b634a31c84ff2ea)
j1elo
reviewed
Jul 7, 2022
j1elo
reviewed
Jul 7, 2022
j1elo
reviewed
Jul 7, 2022
j1elo
added a commit
that referenced
this pull request
Jul 7, 2022
Reverts #38 Reason: Code compiles but linker fails: ``` [ 40%] Linking C shared library libkmswebrtcendpointlib.so CMakeFiles/kmswebrtcendpointlib.dir/kmswebrtctransportsink.c.o: In function `gst_bin_iterate_all_by_element_factory_name': ./src/gst-plugins/webrtcendpoint/./src/gst-plugins/webrtcendpoint/kmswebrtctransportsink.c:59: multiple definition of `gst_bin_iterate_all_by_element_factory_name' CMakeFiles/kmswebrtcendpointlib.dir/kmswebrtctransportsrc.c.o:./src/gst-plugins/webrtcendpoint/./src/gst-plugins/webrtcendpoint/kmswebrtctransportsrc.c:57: first defined here collect2: error: ld returned 1 exit status ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the current behavior you want to change?
This change is related to a previous PR in #37
More specifically this change covers a use case not covered in the previous PR. This is as follows:
This problem has a lesser impact than the previous PR, but in the end it is worth improving it.
What is the new behavior provided by this change?
According to our observations there is only one possible buffer stored that corresponds to the DTLS Client hello received from remote peer. Also, we noticed that if in the same call that notifies ICE connection we delivered the stored DTLS client hello, the answer (DTLS server hello) still finds the ICE connection not usable, so to avoid that, we just make that delivery asynchronously in a separate thread 10 ms later.
How has this been tested?
IT has been tested with automatic tests that cannot yet be used in this Kurento version as they need GStreamer 1.18 to work.
We have also tested it in real environmentes capturing network traffic to see that the change causes the desired behaviour.
Types of changes
Checklist