Marten Seemann
4aca4d64b7
don't add more STREAM frames to a packet if remaining size is too small
2017-12-12 18:00:05 +07:00
Marten Seemann
9b4cdf66fc
Merge pull request #1009 from lucas-clemente/fix-1008
...
correctly handle frames for the crypto stream
2017-12-12 17:56:49 +07:00
Marten Seemann
bf53bf8815
Merge pull request #1016 from lucas-clemente/remove-frame-minlength-error
...
remove the error return value from wire.Frame.MinLength
2017-12-12 17:50:45 +07:00
Marten Seemann
dfa2181657
reject RST_STREAM frames for the crypto stream
2017-12-12 17:37:15 +07:00
Marten Seemann
81e13e52fd
reject STREAM frames that would close the crypto stream
2017-12-12 17:37:15 +07:00
Marten Seemann
5a36a287de
handle MAX_STREAM_DATA frames for the crypto stream
2017-12-12 17:36:59 +07:00
Marten Seemann
4b4e487486
remove the error return value from wire.Frame.MinLength
...
No functional change expected.
The error was only non-nil if some required values for the STOP_WAITING
frame were not set. It should be sufficient to throw an error when
attempting to write an invalid STOP_WAITING frame.
2017-12-12 17:33:04 +07:00
Marten Seemann
ded0eb4f6f
Merge pull request #1018 from lucas-clemente/milestone-0.6
...
release 0.6.0
v0.6.0
2017-12-12 17:29:19 +07:00
Marten Seemann
e8d9de0e79
release 0.6.0
2017-12-12 17:03:43 +07:00
Marten Seemann
5f5ba2c02f
Merge pull request #1010 from lucas-clemente/simplify-frame-handling
...
simplify frame handling
2017-12-12 16:44:35 +07:00
Marten Seemann
632040bd2b
Merge pull request #1001 from lucas-clemente/min-packet-size
...
implement the minimum packet size requirements
2017-12-12 16:37:53 +07:00
Marten Seemann
51c5cc46d8
remove the internal error for RST_STREAM frames for closed streams
2017-12-10 23:34:09 +07:00
Marten Seemann
ba4e980876
remove the internal error for MAX_STREAM_DATA frames for closed streams
2017-12-10 23:29:01 +07:00
Marten Seemann
489ea7fa1a
Merge pull request #997 from lucas-clemente/stream-refactoring
...
refactor sending of stream data
2017-12-08 22:55:42 +07:00
Marten Seemann
7e627d38ea
Merge pull request #999 from lucas-clemente/reject-version-0
...
reject packets with version 0 sent by the client
2017-12-08 22:54:08 +07:00
Marten Seemann
aa1d541fbd
Merge pull request #1000 from lucas-clemente/remove-getbyteorder
...
remove unused utils.GetByteOrder
2017-12-08 22:53:32 +07:00
Marten Seemann
e5a1a650b9
Merge pull request #1005 from julienschmidt/handleRequest
...
shorten blocking call of h2quic.Server.handleRequest
2017-12-08 16:16:29 +07:00
Julien Schmidt
feab6e8450
shorten blocking call of Server.handleRequest
2017-12-08 09:41:57 +01:00
Marten Seemann
8e8892b064
remove the SentFin method from the stream
...
When a FIN is dequeued from the stream by the streamFramer, it is
guaranteed to be sent out. There's no need to explicitely signal that to
the stream.
2017-12-08 14:05:16 +07:00
Marten Seemann
71af5758e2
remove the ShouldSendFin method from the stream
...
GetDataForWriting now has two return parameters: the data and if a FIN
should be sent.
2017-12-08 14:05:14 +07:00
Marten Seemann
085624be20
replace stream.LenOfDataForWriting by HasDataForWriting
...
The return value (the length of data for writing) was only used to
determine if the stream has data for writing. Therefore it's easier to
just return a bool.
No functional change expected.
2017-12-08 14:04:00 +07:00
Marten Seemann
ef89e7aa17
drop Initial packets that don't fulfill the min size requirement
2017-12-08 12:37:04 +07:00
Marten Seemann
23ce5a8554
drop packets for new gQUIC connections that are too small
2017-12-08 12:34:59 +07:00
Marten Seemann
6019634286
pad Initial packets to the required minimum size (1200 bytes)
2017-12-08 11:50:43 +07:00
Marten Seemann
f8cbb0ae03
remove unused utils.GetByteOrder
...
This function was needed when we supported both Q039 (using big endian
encoding) and ealier versions (using little endian encoding).
2017-12-08 11:33:40 +07:00
Marten Seemann
62a664f5f4
Merge pull request #967 from lucas-clemente/varint-encoding
...
implement the new varint frame types
2017-12-08 09:46:50 +07:00
Marten Seemann
d7ceebd644
implement parsing and writing of the new ACK frame
2017-12-08 09:35:55 +07:00
Marten Seemann
11f746a183
implement parsing and writing of the new STREAM frames
2017-12-08 09:20:47 +07:00
Marten Seemann
1a515d1371
implement the new variable integer length frame types
2017-12-08 09:18:54 +07:00
Marten Seemann
759b0d87b1
refactor packet unpacking
...
This replaces version.UsesMaxDataFrame by versoin.UsesIETFFrameFormat.
That way, we can have two separate code paths in the unpacker to unpack
either gQUIC frames or IETF frames.
2017-12-08 09:18:54 +07:00
Marten Seemann
0ac728f96e
implement the new variable integer length encoding
2017-12-08 09:18:54 +07:00
Marten Seemann
62b0d99dcd
reject packets with version 0 sent by the client
...
Version 0 is an invalid version. For packets sent by the server, it is
used to identify the Version Negotiation Packet.
2017-12-08 09:14:41 +07:00
Marten Seemann
2b5573fe82
Merge pull request #980 from lucas-clemente/stateless-retry
...
implement stateless handling of Initial packets for the TLS server
2017-12-08 09:05:58 +07:00
Marten Seemann
25a6dc9654
implement stateless handling of Initial packets for the TLS server
2017-12-08 08:45:54 +07:00
Marten Seemann
57c6f3ceb5
don't return the handshakeChan from the session constructor
2017-12-08 07:34:57 +07:00
Marten Seemann
c65f055ec1
Merge pull request #970 from lucas-clemente/fix-872
...
allow packet number 0
2017-12-07 21:46:57 +07:00
Marten Seemann
2905a37928
handle ACKs for packet number 0
2017-12-07 21:33:34 +07:00
Marten Seemann
0219193a07
accept packet 0 in the ReceivedPacketHandler and generate ACKs for it
2017-12-07 21:33:34 +07:00
Marten Seemann
f90029ef64
change ReceivedPacketHandler such that it can generate ACKs for packet number 0
2017-12-07 21:33:34 +07:00
Marten Seemann
a79e9ee35e
parse and write STOP_WAITING frames for packet number 0
2017-12-07 21:33:34 +07:00
Marten Seemann
6ce3336be5
parse and write ACKs that for packet number 0
2017-12-07 21:33:34 +07:00
Marten Seemann
cc3bfc1fa7
remove bug check for increasing packet number in SentPacketHandler
2017-12-07 21:33:34 +07:00
Marten Seemann
6695983a43
remove error var and internalize member variable in SentPacketHandler
2017-12-07 21:33:34 +07:00
Marten Seemann
196efa873d
Merge pull request #990 from lucas-clemente/fix-989
...
don't send a window update after the final offset was received
2017-12-07 18:55:19 +07:00
Marten Seemann
60a2534027
Merge pull request #992 from lucas-clemente/improve-client-tests
...
improve client tests
2017-12-07 18:48:39 +07:00
Marten Seemann
ea7ee4cd9f
Merge pull request #994 from lucas-clemente/fix-993
...
fix flaky Public Reset test
2017-12-07 18:42:34 +07:00
Marten Seemann
1fd5213f1a
Merge pull request #978 from lucas-clemente/fix-966
...
use the mint default cookie protector to generate cookies
2017-12-07 18:29:32 +07:00
Marten Seemann
f51cfe9fe3
don't send a window update after the final offset was received
...
Receiving a final offset means the peer is done sending on that stream,
and there's no need to grant additional flow control credit.
2017-12-07 18:22:39 +07:00
Marten Seemann
1c802fcf8c
improve client tests
...
This hopefully fixes the flaky tests on AppVeyor.
2017-12-07 18:21:59 +07:00
Marten Seemann
a29acbf960
fix flaky Public Reset test
2017-12-07 18:21:43 +07:00