Commit Graph

14 Commits

Author SHA1 Message Date
Marten Seemann
948eef3e42 create a logger interface and use it everywhere 2018-04-04 13:03:28 +07:00
Marten Seemann
a588b9e140 make golint happier 2018-03-02 16:58:19 +07:00
Marten Seemann
c3d2d7d5cc regenerate the qerr error codes
The stringer output format slightly changed.
2018-01-08 09:42:00 +07:00
Phus Lu
13abf7800f implement Timeout() for QuicError 2017-06-20 16:39:29 +08:00
Marten Seemann
c0b09c8646 make utils an internal package 2017-06-09 22:28:40 +02:00
Marten Seemann
7f416a06c4 send a HeadersStreamDataDecompressFailure error when H2 frame parsing fails
fixes #479
2017-03-15 11:11:38 +07:00
Carlos Martín Nieto
327856e31c Don't rely on GOPATH to load the certificates or error codes
GOPATH is a list of paths, similar to PATH. If someone does have a list
set, the tests will try to use the full list as a path prefix to load
the certificates, which won't work.

But even handling GOPATH as a list does not solve the issue of what
certificate or error_codes.go file to load, since the code might not be
under the first one it finds.

Instead, use the runtime functionality to get the filename of the path
of the project at compilation time and perform the lookups relative to
that, which guarantees that we're loading the files from the path of the
code that is running.
2016-12-02 13:52:12 +01:00
Lucas Clemente
126db938d0 fix some linter warnings 2016-08-23 12:24:33 +02:00
Marten Seemann
3963e7eb03 change tests such that they are covered by coverage reports 2016-06-06 23:52:12 +07:00
Lucas Clemente
c0b2bfa247 fix two typos 2016-06-01 14:19:46 +02:00
Lucas Clemente
e4a7386ca1 add error message to internal errors
reopens #107
2016-05-17 12:56:33 +02:00
Lucas Clemente
287ff59138 import error codes from chrome 2016-05-17 11:58:52 +02:00
Lucas Clemente
466d50345a move error conversion from session to qerr.ToQuicError 2016-05-17 10:38:34 +02:00
Lucas Clemente
bfaa4200df move all error things to new qerr package, replacing errorcodes 2016-05-17 10:38:34 +02:00