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

feat: add dgram recv callback #247

Merged
merged 2 commits into from
Dec 18, 2023
Merged

feat: add dgram recv callback #247

merged 2 commits into from
Dec 18, 2023

Conversation

qzhuyan
Copy link
Collaborator

@qzhuyan qzhuyan commented Dec 18, 2023

  • add dgram recv callback
  • fixing naming of datagram -> dgram
  • fix some confusion perf profile naming

- add dgram_recv callback in quicer_connection
- align naming datagram => dgram
ListenerOpts = [{conn_acceptors, 4} | default_listen_opts(Config)],
ConnectionOpts = [ {conn_callback, ServerConnCallback}
, {stream_acceptors, 2}
| default_conn_opts()],
Copy link
Member

Choose a reason for hiding this comment

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

Nit: indentation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will format the code with erlfmt in the next PR.

Comment on lines +474 to +476
, {disable_fpbuffer, true}
| default_stream_opts() ],
%% GIVEN: A listener with datagram_receive_enabled = false
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: should disable_fpbuffer = true above be datagram_receive_enabled = false?
Or maybe explicitly set it in ListenerOpts?

@qzhuyan qzhuyan merged commit 09a60d3 into emqx:main Dec 18, 2023
24 checks passed
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