Coder Social home page Coder Social logo

Comments (16)

Ralith avatar Ralith commented on July 20, 2024 1

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.

jansol avatar jansol commented on July 20, 2024

I'd like to give this a try

from quinn.

djc avatar djc commented on July 20, 2024

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.

Ralith avatar Ralith commented on July 20, 2024

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.

djc avatar djc commented on July 20, 2024

Okay, I'm fine using just simple methods on the new types.

from quinn.

djc avatar djc commented on July 20, 2024

@jansol are you still interested in finishing this? If not, someone else might want to take a swing!

from quinn.

jansol avatar jansol commented on July 20, 2024

Yeah, just had a quick chat with Ralith yesterday about this.

from quinn.

djc avatar djc commented on July 20, 2024

Okay, good!

from quinn.

jansol avatar jansol commented on July 20, 2024

Did you mean quic-15 or draft-15? Because I did rebase after draft-15 was merged.

from quinn.

Ralith avatar Ralith commented on July 20, 2024

I meant draft-15, which has not yet been merged to master (but to which the refactored transport parameters were merged).

from quinn.

djc avatar djc commented on July 20, 2024

This has been rendered irrelevant by the changes in draft 19.

from quinn.

Ralith avatar Ralith commented on July 20, 2024

I'm not certain about that; there's still a number of server-specific fields we're currently representing with Option.

from quinn.

lmpn avatar lmpn commented on July 20, 2024

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.

Ralith avatar Ralith commented on July 20, 2024

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.

djc avatar djc commented on July 20, 2024

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.

Ralith avatar Ralith commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.