Marten Seemann
d330fda94c
also use the onHasStreamData callback for the crypto stream
2018-01-09 17:17:16 +07:00
Marten Seemann
d9c107b034
introduce a queue of active streams in the streamFramer
...
The queue holds all streams that have data to send. When stream.Write or
stream.Close are called, a stream is added to this queue. It is removed
from the queue when all available (at that moment) data was sent.
This way, we don't need the round robin scheduling (which, for every
packet sent, asked every single open stream if it had data) any more.
2018-01-02 23:24:44 +07:00
Marten Seemann
d195085f65
don't queue the complete window update, but only the stream ID
2017-12-21 19:03:52 +07:00
Marten Seemann
fc8fafd15e
pass a callback containing the callbacks to the stream
2017-12-20 11:49:05 +07:00
Marten Seemann
d2e31c04ab
generate the streamI mock in the quic package
...
By doing so, we can mock private methods of the stream, so they cannot
be type-asserted by users of quic-go.
2017-12-20 10:42:07 +07:00
Marten Seemann
d49ad2d0cc
queue STREAM_BLOCKED frames from the stream, when popping a STREAM frame
2017-12-20 10:23:01 +07:00
Marten Seemann
e926b0805a
split the stream into a receive and a send stream
2017-12-20 10:05:02 +07:00
Marten Seemann
448928fc63
Merge pull request #1028 from lucas-clemente/fix-986
...
add the offset to the BLOCKED and STREAM_BLOCKED frames
2017-12-14 19:21:05 +07:00
Marten Seemann
00edfb7461
set the offset in BLOCKED and STREAM_BLOCKED frames
2017-12-14 19:04:17 +07:00
Marten Seemann
8c5741ae79
rename stream.Cancel to stream.CloseForShutdown
2017-12-14 17:30:44 +07:00
Marten Seemann
2d31440510
pass MAX_STREAM_DATA frames directly to the stream
2017-12-14 16:50:47 +07:00
Marten Seemann
823098d6e2
rename stream.AddStreamFrame to stream.HandleStreamFrame
2017-12-14 16:50:47 +07:00
Marten Seemann
73ab97aa95
simplify the stream by directly popping STREAM frames from it
2017-12-12 18:48:08 +07:00
Marten Seemann
cd5e7ae177
remove unneeded function from the crypto stream interface
2017-12-12 18:30:08 +07:00
Lucas Clemente
0febba87ba
move crypto handshake stuff to its own package
2016-04-14 19:50:04 +02:00
Lucas Clemente
284b86c02c
send proper kex value in example server
2016-04-12 15:29:26 +02:00
Lucas Clemente
95e1b87302
add certificate handling to example server
2016-04-12 12:18:01 +02:00
Lucas Clemente
4a44e4982e
move utils.go to its own package so that it's available for aeads
2016-04-10 20:23:15 +02:00
Lucas Clemente
9cb328ef8b
implement sample server REJ message in example server
2016-04-10 18:40:09 +02:00
Lucas Clemente
b2098f8f13
add some more crypto message tags
2016-04-10 16:34:05 +02:00
Lucas Clemente
120d255f38
implement writing of crypto messages
2016-04-10 16:33:55 +02:00
Lucas Clemente
4df279dd81
implement parsing of sample CHLO crypto stream
2016-04-08 19:28:46 +02:00