Git Product home page Git Product logo

quic-go's Introduction

A QUIC implementation in pure Go

Documentation PkgGoDev Code Coverage Fuzzing Status

quic-go is an implementation of the QUIC protocol (RFC 9000, RFC 9001, RFC 9002) in Go. It has support for HTTP/3 (RFC 9114), including QPACK (RFC 9204) and HTTP Datagrams (RFC 9297).

In addition to these base RFCs, it also implements the following RFCs:

Support for WebTransport over HTTP/3 (draft-ietf-webtrans-http3) is implemented in webtransport-go.

Detailed documentation can be found on quic-go.net.

Projects using quic-go

Project Description Stars
AdGuardHome Free and open source, powerful network-wide ads & trackers blocking DNS server. GitHub Repo stars
algernon Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support GitHub Repo stars
caddy Fast, multi-platform web server with automatic HTTPS GitHub Repo stars
cloudflared A tunneling daemon that proxies traffic from the Cloudflare network to your origins GitHub Repo stars
frp A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet GitHub Repo stars
go-libp2p libp2p implementation in Go, powering Kubo (IPFS) and Lotus (Filecoin), among others GitHub Repo stars
gost A simple security tunnel written in Go GitHub Repo stars
Hysteria A powerful, lightning fast and censorship resistant proxy GitHub Repo stars
Mercure An open, easy, fast, reliable and battery-efficient solution for real-time communications GitHub Repo stars
OONI Probe Next generation OONI Probe. Library and CLI tool. GitHub Repo stars
RoadRunner High-performance PHP application server, process manager written in Go and powered with plugins GitHub Repo stars
syncthing Open Source Continuous File Synchronization GitHub Repo stars
traefik The Cloud Native Application Proxy GitHub Repo stars
v2ray-core A platform for building proxies to bypass network restrictions GitHub Repo stars
YoMo Streaming Serverless Framework for Geo-distributed System GitHub Repo stars

If you'd like to see your project added to this list, please send us a PR.

Release Policy

quic-go always aims to support the latest two Go releases.

Contributing

We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with help wanted. If you have any questions, please feel free to reach out by opening an issue or leaving a comment.

quic-go's People

Contributors

aaronriekenberg avatar aviscode avatar birneee avatar bt90 avatar dependabot[bot] avatar dunglas avatar ebi-yade avatar glonee avatar hareku avatar jbenoist avatar jfgiorgi avatar juliens avatar julienschmidt avatar kelmenhorst avatar lucas-clemente avatar marcopolo avatar marten-seemann avatar mengelbart avatar mw-jn avatar nmldiegues avatar q191201771 avatar renbou avatar sukunrt avatar tanghaowillow avatar tatianab avatar tobyxdd avatar twdkeule avatar vinozzz avatar weidideng avatar ydnar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quic-go's Issues

Verify CHLO length

The docs says:

Any message may contain a padding (PAD) tag. These can be used to to defeat traffic analysis. Additionally, we may define a global minimum size for client hellos to limit amplification attacks. Client hellos that are smaller than the minimum would need a PAD tag to make up the difference.

Queue undecryptable packets for later decryption

Issue #33 is a race condition where the client may send encrypted data, but the server has not processed the handshake yet. In these cases, we should queue the undecryptable packets for later decryption (i.e. at latest once we have forward secure encryption set up), instead of simply discarding them.

There should be an error if:

  • Too many undecryptable packets arrive
  • Queued packets are still undecryptable after FS encryption is set up

prioritize StreamFrames that need to be retransmitted

When a packet is lost and needs to be retransmitted, we immediately send the StopWaitingFrame with the next packet. The StreamFrames contained in the lost packet however are queued and might get transmitted much later if the StreamFrame queue in the PacketPacker is long.

implement Flow control

The client always crashes for downloads of non-trivial amounts of data because we are sending too fast.

Error message:

[0501/115530:VERBOSE1:quic_flow_controller.cc(62)] Client: Stream 5 highest byte offset increased from: 15137 to 16538
[0501/115530:VERBOSE1:quic_flow_controller.cc(62)] Client: Stream 0 highest byte offset increased from: 15137 to 16538
[0501/115530:ERROR:quic_flow_controller.cc(94)] Client: Flow control violation on stream 5, receive window offset: 16384, highest received byte offset: 16538
[0501/115530:VERBOSE1:quic_connection.cc(1913)] Client: Closing connection: 14740099974783558584, with error: QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA (59), and details:  Flow control violation after increasing offset
[0501/115530:VERBOSE1:quic_connection.cc(1928)] Client: Sending connection close packet.

Panic message:

[0501/115530:FATAL:quic_flow_controller.cc(174)] Check failed: bytes_consumed_ <= receive_window_offset_ (16538 vs. 16384)

large downloads not working

Client sends ConnectionCloseFrame because of Invalid entropy after a couple of hundert packets on network connections (not on loopback).

occasional "authentication failed" errors

Sample output:

<- Reading packet 6 for connection 3793658948447668933
Closing session with error: authentication failed
invalid http2 frame: authentication failed

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.