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

Dev/william/connection registrations #215

Merged
merged 9 commits into from
Sep 18, 2023

Conversation

qzhuyan
Copy link
Collaborator

@qzhuyan qzhuyan commented Sep 7, 2023

followup: #215,
client can create connection with registration
and some refactorings

@qzhuyan qzhuyan force-pushed the dev/william/connection-registrations branch from 7970e77 to b69b723 Compare September 8, 2023 13:19
@qzhuyan qzhuyan marked this pull request as ready for review September 9, 2023 08:44
@qzhuyan qzhuyan force-pushed the dev/william/connection-registrations branch from 649c81b to c46fe87 Compare September 11, 2023 08:12
- parse_conn_local_address
- parse_conn_resume_ticket
- parse_conn_disable_1rtt_encryption
- parse_conn_event_mask
msquic does conn callback with StreamsAvailable event in the same code
path of set conn param session ticket.

This causes deadlock when callback handler wait for quicer async_connect to
release the lock of c_ctx when it is called with an opened handle.

solution is to either do set session ticket in open_connection
Or set session ticket in async_connect without an opened handle

callstack:
    at /home/ubuntu/repo/quic/msquic/src/core/stream_set.c:343
@qzhuyan qzhuyan force-pushed the dev/william/connection-registrations branch from c46fe87 to 6f047c7 Compare September 14, 2023 07:24
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6182265711

  • 74 of 102 (72.55%) changed or added relevant lines in 6 files are covered.
  • 11 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.1%) to 82.745%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/quicer_nif.erl 0 1 0.0%
c_src/quicer_config.c 6 8 75.0%
c_src/quicer_tls.c 23 28 82.14%
c_src/quicer_connection.c 42 62 67.74%
Files with Coverage Reduction New Missed Lines %
src/quicer.erl 1 86.71%
c_src/quicer_connection.c 10 80.45%
Totals Coverage Status
Change from base Build 6118834491: -0.1%
Covered Lines: 3093
Relevant Lines: 3738

💛 - Coveralls

c_src/quicer_connection.c Show resolved Hide resolved
@qzhuyan qzhuyan merged commit 285140e into emqx:main Sep 18, 2023
18 checks passed
@qzhuyan qzhuyan deleted the dev/william/connection-registrations branch September 18, 2023 07:28
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.

3 participants