Commit Graph

476 Commits

Author SHA1 Message Date
Lucas Clemente
bfaa4200df move all error things to new qerr package, replacing errorcodes 2016-05-17 10:38:34 +02:00
Marten Seemann
62da35d613 implement a basic flow controller
needed for #39, #100, #106
2016-05-17 15:21:30 +07:00
Lucas Clemente
3cc7d7f289 add a test that checks that each errorcode has a string representation 2016-05-17 01:22:42 +02:00
Lucas Clemente
dc2a14a5f7 add error code string representation to QuicError.Error 2016-05-17 00:31:18 +02:00
Lucas Clemente
69e302812d move ErrorCode type to errorcodes package 2016-05-17 00:25:51 +02:00
Lucas Clemente
fec9786939 error cosmetics 2016-05-17 00:12:04 +02:00
Lucas Clemente
dd13836aa9 rename NewQuicError to Error 2016-05-17 00:11:48 +02:00
Lucas Clemente
f624592198 remove unused error codes and name the constants according to go style
ref #86
2016-05-16 20:41:56 +02:00
Marten Seemann
565f4c9fda support largest observed packet number missing in ACK frames
fixes #63
2016-05-16 21:50:58 +07:00
Marten Seemann
d5c7a62066 don't send internal error messages to the client
fixes #107
2016-05-16 19:14:11 +07:00
Marten Seemann
712e682d21 improve errors in SentPacketHandler 2016-05-16 18:44:11 +07:00
Marten Seemann
fb6d90b813 cosmetic changes in tests 2016-05-16 18:32:08 +07:00
Marten Seemann
0d4dd8869d detect stream flow control violations
fixes #97
2016-05-16 18:15:40 +07:00
Marten Seemann
4de41d0737 set offset in WindowUpdates based on read position and window increment
fixes #105
2016-05-16 17:00:06 +07:00
Marten Seemann
de871f0a4f ignore WindowUpdate frames for already closed streams
fixes #104
2016-05-16 13:36:35 +07:00
Lucas Clemente
93c52a3414 fix support for version 30
fixes #101, ref #70
2016-05-15 19:58:34 +02:00
Lucas Clemente
d469a19b62 rename {New,GetOrCreate}Stream stream to {,GetOr}OpenStream 2016-05-15 18:51:23 +02:00
Lucas Clemente
af522c1538 privatize session.updateReceiveFlowControlWindow
ref #60
2016-05-15 18:50:04 +02:00
Lucas Clemente
a10d58c8ca privatize session.run
ref #60
2016-05-15 18:49:09 +02:00
Lucas Clemente
2fb42afc8a privatize session.queueStreamFrame
ref #60
2016-05-15 18:49:01 +02:00
Lucas Clemente
028615b8f0 privatize session.handlePacket
ref #60
2016-05-15 18:48:11 +02:00
Lucas Clemente
ce1f7b2aaf privatize closeCallback
ref #60
2016-05-15 15:58:35 +02:00
Lucas Clemente
0cb0ce8ad8 privatize parsePublicHeader
ref #60
2016-05-15 15:44:50 +02:00
Lucas Clemente
9cc4bb3ccf privatize publicHeader
ref #60
2016-05-15 15:44:14 +02:00
Lucas Clemente
caec66b927 fix linter warning in server test 2016-05-15 15:38:43 +02:00
Lucas Clemente
f79f7f7724 privatize newSession
ref #60
2016-05-15 15:33:36 +02:00
Lucas Clemente
b558bb8a75 privatize packetHandler
ref #60
2016-05-15 15:32:41 +02:00
Lucas Clemente
5fab9b5326 privatize windowUpdateManager
ref #60
2016-05-15 15:29:21 +02:00
Lucas Clemente
864105271e privatize streamFrameQueue
ref #60
2016-05-15 15:27:39 +02:00
Lucas Clemente
283cab4e0d improve crypto tests 2016-05-15 15:23:46 +02:00
Lucas Clemente
d4de18c472 only delete streams once we are done reading AND writing
fixes #98
2016-05-15 15:03:02 +02:00
Lucas Clemente
d78b2f4d57 fix some linter warnings 2016-05-15 14:46:10 +02:00
Lucas Clemente
de660dbfc5 run gofmt -s on main and server config 2016-05-15 14:42:56 +02:00
Lucas Clemente
c12a12518e run gofmt -s on tests 2016-05-15 14:42:34 +02:00
Lucas Clemente
0743c0824f add version number to server log 2016-05-15 14:39:36 +02:00
Lucas Clemente
916f244cc6 fix a go vet warning 2016-05-15 14:39:28 +02:00
Marten Seemann
089582dd9f improve sending of WindowUpdate frames
fixes #96
2016-05-15 18:05:15 +07:00
Marten Seemann
a3ff4dd891 send WindowUpdate frames
fixes #19
2016-05-15 16:48:42 +07:00
Marten Seemann
540941117e cosmetic changes in tests 2016-05-15 13:08:56 +07:00
Marten Seemann
0d29bdc499 pack WindowUpdate frames into two packets if they don't fit into one
work towards #96
2016-05-15 11:41:07 +07:00
Marten Seemann
13f15c8c23 add method to PacketPacker to send WindowUpdate frames
work towards #19
2016-05-15 09:52:31 +07:00
Lucas Clemente
01edd2c395 sync logging properly 2016-05-14 14:28:54 +02:00
Lucas Clemente
73a1def2bd add private option to close h2 connections after first request
fixes #92
2016-05-14 14:16:26 +02:00
Lucas Clemente
06e824c14c ignore streams with id != 3 in h2quic server
fixes #89
2016-05-14 13:36:16 +02:00
Lucas Clemente
9f63cdbd91 add stream.StreamID() 2016-05-14 13:35:43 +02:00
Lucas Clemente
967a5c401c merge protocol.MinMax into utils.MinMax 2016-05-14 13:28:18 +02:00
Lucas Clemente
40acb8e9b5 minor protocol test fixes 2016-05-14 13:24:38 +02:00
Lucas Clemente
55e32b9d96 update roadmap in readme 2016-05-14 13:13:13 +02:00
Marten Seemann
561acc08e4 pack control frames into separate packets if they don't fit into one 2016-05-14 18:07:24 +07:00
Marten Seemann
2ac53843ed improve error handling in ConnectionParametersManager 2016-05-14 17:30:36 +07:00