-
Notifications
You must be signed in to change notification settings - Fork 155
remove 2 debug_asserts #3478
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
base: users/jesup/datagram_max_size
Are you sure you want to change the base?
remove 2 debug_asserts #3478
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -419,11 +419,9 @@ impl Protocol for Session { | |||||||||||||||||||||||||||||||||||||||||||
| _buf: &[u8], | ||||||||||||||||||||||||||||||||||||||||||||
| _now: Instant, | ||||||||||||||||||||||||||||||||||||||||||||
| ) -> Res<()> { | ||||||||||||||||||||||||||||||||||||||||||||
| debug_assert!( | ||||||||||||||||||||||||||||||||||||||||||||
| false, | ||||||||||||||||||||||||||||||||||||||||||||
| "[{self}] WebTransport does not support datagram capsules." | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
| Ok(()) | ||||||||||||||||||||||||||||||||||||||||||||
| // WebTransport uses QUIC datagrams, not HTTP DATAGRAM Capsules. | ||||||||||||||||||||||||||||||||||||||||||||
| // datagram_capsule_support() returns false so this should never be called. | ||||||||||||||||||||||||||||||||||||||||||||
| Err(Error::Unavailable) | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
-422
to
+424
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you explain how you are hitting this
neqo/neqo-http3/src/features/extended_connect/webtransport_session.rs Lines 402 to 413 in 6978589
Thus neqo/neqo-http3/src/features/extended_connect/session.rs Lines 449 to 457 in 6978589
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not hitting it. This shouldn't be possible at the moment, but if some future change (accidentally) changed that, returning an error would be better I think
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In that case it would panic in debug mode, thus alerting us of the bug, and return an error in release mode, thus not causing harm. In other words, please keep this as is. |
||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| fn set_datagram_high_water_mark(&mut self, mark: f64) { | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
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.
👍