Comments (16)
Note that this code has been significantly refactored in the quic-15 branch; work on this issue should be done relative to those changes rather than master.
from quinn.
I'd like to give this a try
from quinn.
Sounds great! You can have a look here at my original code for this:
https://github.com/djc/quinn/blob/pre-quicr-quinn/src/parameters.rs
(Note that Value
is now called Codec
, and you'll have to fiddle with the error handling if you want to use it. I think it would be nice to have Codec::decode()
return DecodeError
which will include the current UnexpectedEnd
, which can then contain a variant TransportParametersError
which contains a transport_parameters::Error
. @Ralith does that work for you?)
from quinn.
Codec
as it stands is used for things that have no invalid representations, which makes its use simple and allows for a zero-size error type. I'm not a huge fan of introducing additional error cases for the sake of a single type. Is there a good reason not to use inherent methods/associated functions?
from quinn.
Okay, I'm fine using just simple methods on the new types.
from quinn.
@jansol are you still interested in finishing this? If not, someone else might want to take a swing!
from quinn.
Yeah, just had a quick chat with Ralith yesterday about this.
from quinn.
Okay, good!
from quinn.
Did you mean quic-15
or draft-15
? Because I did rebase after draft-15
was merged.
from quinn.
I meant draft-15
, which has not yet been merged to master (but to which the refactored transport parameters were merged).
from quinn.
This has been rendered irrelevant by the changes in draft 19.
from quinn.
I'm not certain about that; there's still a number of server-specific fields we're currently representing with Option
.
from quinn.
I finding it hard to understand what needs to be changed...
The details of the issue are up to date or this issue is no longer valid?
from quinn.
TransportParameters
contains three fields that are never set by clients, and always set by servers. This could be expressed a little more precisely by having two types, one in which they're all required, and one in which server-specific fields do not exist at all.
That said, it's not obvious that this would lead to simpler/more robust code, which is the real goal. I lean towards closing this as not planned. @djc, any thoughts?
from quinn.
Yeah, agreed that there's probably not much value here. @lmpn I'm guessing you may have gotten here via the Hacktoberfest/good first issue labels, @Ralith do you have any other (more current) ideas for something like that?
from quinn.
I see you've just gone through and added a bunch of reasonable things; I'll watch for other opportunities as well. https://github.com/quinn-rs/quinn/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22 is also good.
from quinn.
Related Issues (20)
- stream sending buffer size and how much left HOT 3
- ECN interop failures HOT 3
- aggressive open_bi HOT 1
- Create my own AsyncUdpSocket HOT 1
- "SendableFrames was SendableFrames { acks: false, other: true }, but only ACKs have been written" HOT 11
- Black hole detection false-positives HOT 5
- Expose Packet Decoder? HOT 2
- ReadExactError::FinishedEarly byte count is sometimes incorrect HOT 1
- How to receive data in blocking way HOT 3
- Inconsistent documentation on platform availability of `local_ip` HOT 3
- long running bi stream HOT 5
- seems like quinn 0.11 not working well under heavy load HOT 12
- API for awaiting for stream reset on the reader HOT 5
- build fails on Solaris HOT 4
- Rotation of Connection IDs HOT 5
- How to run insecure connection example? HOT 1
- Weird issue when transferring large file HOT 3
- `ACKs are delivered in order` panic when packets are reordered
- Allow a client to specify Initial Connection ID HOT 2
- Bundle flow control and ACK frames opportunistically
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quinn.