-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix datagram support detection #3511
Conversation
- treat zero MaxDatagramFrameSize as unsupported. - avoid send corresponding transport parameters when support is disabled - report error when calling Send/ReceiveMessage and support is disabled see #3505
This replace #3507 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the datagramQueue
should be initialized when we receive the peer's transport parameters, not on setup, right?
Codecov ReportBase: 85.69% // Head: 85.60% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3511 +/- ##
==========================================
- Coverage 85.69% 85.60% -0.09%
==========================================
Files 136 137 +1
Lines 9992 10008 +16
==========================================
+ Hits 8562 8567 +5
- Misses 1052 1064 +12
+ Partials 378 377 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I'm neither familiar with code base nor with standard, so this PR doesn't address this problem, only add a nil check to avoid go panic. |
Initiate |
Sounds good to me. Then we can send datagrams, even if we don't support receiving datagrams. Can you update the PR? |
Fixes #3505.