Commit Graph

148 Commits

Author SHA1 Message Date
Marten Seemann
d35b5ac187 use ed25519 instead of RSA in tests and examples (#5050)
Also adds a golangci-lint depguard rules that forbids
importing crypto/rsa.
2025-04-20 05:55:08 +02:00
Marten Seemann
1db805ce4f http3: improve the client API (#4693)
* http3: rename RoundTripper to Transport

* http3: rename SingleDestinationRoundTripper to ClientConn

* http3: construct the ClientConn via Transport.NewClientConn
2024-10-13 22:17:50 -07:00
Marten Seemann
1cbd54f087 example: remove Dockerfile (#4568)
This Dockerfile adds very little value.
2024-06-15 22:01:08 -07:00
Marten Seemann
cc9a5ee744 qlog: rename DefaultTracer to DefaultConnectionTracer (#4556) 2024-06-05 03:50:01 -07:00
Z.SX
f3cecf952e http3: rename ListenAndServe to ListenAndServeTLS (#4522)
* http3: rename ListenAndServe to ListenAndServeTLS

* http3: fix golanglint

---------

Co-authored-by: Shunxin Zhang <shunxin.zhang@shopee.com>
2024-05-14 18:32:56 -07:00
Marten Seemann
49b9965525 http3: rename RoundTripper.QuicConfig to RoundTripper.QUICConfig (#4385) 2024-03-23 15:29:39 -07:00
Marten Seemann
89020e380a http3: rename Server.QuicConfig to Server.QUICConfig (#4384) 2024-03-23 14:39:34 -07:00
Marten Seemann
3449ace5a6 example: remove -qlog flag in favor of QLOGDIR (#4243) 2024-01-13 18:30:59 -08:00
Marten Seemann
13327521a5 example: remove -v flag and custom logger configuration (#4242)
Users can adjust the log level using the QUIC_GO_LOG_LEVEL environment
variable. This is more representative of how quic-go would actually be
used, since the logger is part of an internal package.
2024-01-13 01:59:58 -08:00
Marten Seemann
0a922b4e7d example: add config flag for TLS key and cert for the server (#4237) 2024-01-05 02:21:42 -08:00
fengyun.rui
f162b948db examples: close listener, connection and stream in echo client and server (#4188)
* fix: add close func in example

Signed-off-by: rfyiamcool <rfyiamcool@163.com>

* fix: add close func in example

Signed-off-by: rfyiamcool <rfyiamcool@163.com>

* fix: add close func in example

Signed-off-by: rfyiamcool <rfyiamcool@163.com>

---------

Signed-off-by: rfyiamcool <rfyiamcool@163.com>
2023-12-09 09:05:31 -08:00
Marten Seemann
96ab48eb7d fix serialization of connection ID in filenames of qlog files (#4170) 2023-11-16 22:06:42 -08:00
Marten Seemann
9b82196578 make the logging.Tracer and logging.ConnectionTracer a struct (#4082) 2023-09-16 04:58:51 -07:00
Marten Seemann
07ad2cbee2 remove Tracer from Config, put ConnectionTracer constructor there 2023-05-02 15:56:49 +02:00
Marten Seemann
aee7706d5d clean up dial functions
* add a context to all Dial functions
* remove the explicit Dial{*}Context functions
2023-05-01 13:59:54 +02:00
Marten Seemann
58cedf7a4f rename module, adjust import paths to quic-go/quic-go (#3680) 2023-01-21 19:53:57 -08:00
Marten Seemann
498475fa60 update golangci-lint action to v3, golangci-lint to v1.48.0 (#3499)
* run gofmt -s -w

* stop using the deprecated io/ioutil package

* update golangci-lint action to v3, golangci-lint to v1.48.0
2022-08-10 09:50:48 -07:00
Ivan Trubach
0ec8ee3cff do not embed http.Server in http3.Server (#3397)
This change removes the embedded http.Server struct from http3.Server.
It slightly changes some error behavior, in particular, it mandates
TLSConfig for methods that create QUIC listeners.

Before this change, only Addr, TLSConfig, Handler and MaxHeaderBytes
options were used from the http.Server. These are now defined directly
in http3.Server with an improved documentation.
2022-05-20 02:53:23 -07:00
Marten Seemann
4b17343631 rename the session to connection 2022-03-27 12:50:14 +01:00
Song Zhu
b998c58496 fix log info error 2021-09-05 17:22:21 +08:00
市川恭佑 (ebi)
f767474977 Remove a redundant error checking condition 2021-06-24 17:20:14 +09:00
Marten Seemann
02b700804f remove support for quic-trace 2020-12-05 23:13:45 +07:00
Marten Seemann
eb53fdfdb3 fix setting of http.Handler in the example server 2020-11-23 11:08:26 +07:00
Marten Seemann
ee24d3899e simplify the Tracer interface by combining the TracerFor... methods 2020-07-11 13:22:52 +07:00
Marten Seemann
ac606222e0 replace the GetLogWriter quic.Config option by a Tracer interface 2020-07-01 16:57:03 +07:00
Marten Seemann
3e8c3cafc1 make the buffered qlog writer used in interop flush before closing 2020-03-19 12:58:56 +07:00
Marten Seemann
86e9ab8f20 use buffered qlog writers in example client and server, and interop 2020-03-18 12:34:14 +07:00
Marten Seemann
d6e4b100e8 fix keylog creation in the example client 2020-02-12 15:38:50 +07:00
Marten Seemann
b1a3e7a00b add a -qlog flag to the example client and server 2020-02-12 10:42:38 +07:00
Marten Seemann
b412ed6d30 add a command line option to the example client to export a key log file 2020-02-11 13:22:11 +07:00
Marten Seemann
2ba4617463 use log.Fatal() instead of panic() in example client and server 2020-01-08 15:15:52 +07:00
Marten Seemann
07dcbc8496 remove the testserver package 2019-11-25 12:54:58 +07:00
Marten Seemann
4febf95c0b fix certificate check in the example client 2019-11-07 10:29:55 +07:00
Marten Seemann
84c6a60771 make example server conform with the GET /xxx format used for interop 2019-08-02 11:27:32 +07:00
Marten Seemann
58ef419869 fix the /dynamic endpoint on the example server 2019-07-13 17:46:36 +07:00
Marten Seemann
2b8cece60a add a context to Session.Open{Uni}StreamSync 2019-06-22 19:37:21 +08:00
Marten Seemann
5550ba2c3b add a context to Session.Accept{Uni}Stream 2019-06-22 19:37:11 +08:00
Marten Seemann
12bce1caaa add a context to Listener.Accept 2019-06-22 19:36:52 +08:00
Marten Seemann
73f83ca4bb add a tracing option to the example server 2019-06-20 22:58:01 +08:00
Marten Seemann
375b609610 fix ALPN in echo example 2019-06-07 16:27:37 +08:00
Marten Seemann
27a226980c Merge pull request #1920 from lucas-clemente/insecure-client
add a flag to skip certificate verification to the example client
2019-05-21 17:57:45 +01:00
Marten Seemann
f2289c8903 add a flag to skip certificate verification to the example client 2019-05-21 15:43:08 +01:00
Marten Seemann
3e9ffe9e28 add an HTTP endpoint to output arbitrary length data to example server 2019-05-21 15:38:50 +01:00
Marten Seemann
4f6d0e651a implement HTTP/3 2019-04-11 09:06:10 +09:00
Marten Seemann
f6357dc858 use the self-signed certificate for the example server and client 2018-12-13 14:42:25 +06:30
Marten Seemann
4abcce6408 use a self-signed certificate for integration tests 2018-12-11 14:24:12 +06:30
Marten Seemann
3266e36811 drop support for gQUIC 2018-10-30 10:20:39 +07:00
Marten Seemann
69d3929ae0 add a quiet flag to the example client 2018-10-01 19:33:06 -07:00
Lucas Clemente
70360241da Update certs 2018-09-08 11:22:03 +02:00
Lucas Clemente
7a566d9f28 Update certs 2018-06-09 11:27:13 +02:00