Marten Seemann
73a64fde5f
remove StopWaitingManager from new AckHandler
2016-07-29 18:02:43 +07:00
Lucas Clemente
7ab2eb1b93
improve error message when closing a connection
...
fixes #228
2016-07-29 12:20:01 +02:00
Marten Seemann
2d48210fa0
run Session tests with new AckHandler, minor fixes
...
ref #55
2016-07-29 16:47:14 +07:00
Lucas Clemente
3a88a8cffa
delete flow controllers for closed streams
...
fixes #177
2016-07-28 16:45:55 +02:00
Lucas Clemente
5a82b35ca8
put buffers back into the pool after reading packets
2016-07-26 18:44:01 +02:00
Lucas Clemente
daa328460f
use in-place decryption when unpacking
2016-07-26 18:33:48 +02:00
Lucas Clemente
950e59fa3d
add a sync.Pool of byte buffers with maximum packet size as cap
...
ref #217
2016-07-26 15:36:28 +02:00
Lucas Clemente
44acb8ca82
remove session.maybeSendPacket, restrict small frame detection to ACKs
...
ref #217
2016-07-26 13:44:07 +02:00
Lucas Clemente
d9a3980efc
remove streamFramer.HasData()
...
ref #217
2016-07-26 13:43:18 +02:00
Marten Seemann
03bad0e86b
use the same interface for new and legacy AckHandlers
...
ref #55
2016-07-26 18:31:54 +07:00
Marten Seemann
ef194015de
use wrapped legacy ACK frame
...
ref #55
2016-07-26 12:30:48 +07:00
Marten Seemann
99d22b0908
open new stream when receiving a WindowUpdate for an unknown stream
...
fixes #203
2016-07-25 16:37:27 +07:00
Lucas Clemente
1bc8c882c9
remove session pointer from stream and use a lambda to signal new data
2016-07-11 14:57:54 +02:00
Lucas Clemente
f04d14ac3e
use flow controller for window update handling, remove windowUpdateMgr
2016-07-11 14:54:32 +02:00
Lucas Clemente
e303a7f578
send CONNECTION_CLOSE from the normal run loop
...
fixes #199
2016-07-10 15:24:26 +02:00
Lucas Clemente
91f1eb1561
re-enable BLOCKED frame sending
...
fixes #113 , fixes #172 , fixes #211
2016-07-09 14:37:16 +02:00
Lucas Clemente
87c1a2f004
remove sentPacketHandler from packetPacker
2016-07-08 18:21:46 +02:00
Lucas Clemente
5cc88f60dc
fix handling of connection level window updates
2016-07-08 18:21:45 +02:00
Lucas Clemente
d1e3b541d3
replace streamFrameQueue with just-in-time framing of written data
...
This commits replaces the stream frame queue with a framer which
requests data from the streams just when a frame is needed by the
packet packer. This simplifies a lot of things and allows some other
refactorings, see issue #83 .
There are a few pending tests which will be fixed soon.
2016-07-08 18:21:44 +02:00
Marten Seemann
ef9baf67fc
use FlowControlManager in StreamFrameQueue
2016-07-06 10:17:42 +02:00
Marten Seemann
1d358a031f
ignore packets smaller than LeastUnacked of a StopWaiting
...
ref #196
2016-07-03 23:32:08 +08:00
Marten Seemann
8071fda5ee
ignore duplicate packets
...
fixes #197
2016-07-03 23:22:12 +08:00
Marten Seemann
3e604a274d
add tests for receiving packets in Session
...
ref #197
2016-07-03 23:19:07 +08:00
Marten Seemann
1786c952c5
fix duplicate and out-of-order ACK detection in SentPacketHandler
...
fixes #192
2016-06-26 16:15:34 +07:00
Marten Seemann
eb03ed5334
rename AckHandler package to AckHandlerLegacy
2016-06-21 19:51:26 +07:00
Marten Seemann
288cb9e143
rename AckFrame to AckFrameLegacy
2016-06-21 19:51:26 +07:00
Marten Seemann
5651a7cfc1
pass QUIC version number to Frame.MinLength
...
ref #181
2016-06-19 13:43:58 +07:00
Marten Seemann
5d02033f0f
use FlowControlManager in Stream for Reading data
2016-06-15 19:39:50 +07:00
Marten Seemann
9aea21f8d6
handle ReceivedPacketHandler errors in Session when handling a packet
...
ref #132
2016-06-11 11:54:42 +07:00
Marten Seemann
1c1101de0e
remove queued StreamFrames when a Stream is closed with an error
...
fixes #149
2016-06-10 19:18:51 +07:00
Marten Seemann
b1c27b5eca
initialize StreamFrameQueue in Session, not in PacketPacker
2016-06-10 19:06:40 +07:00
Marten Seemann
1491bc20f4
fix flaky tests on AppVeyor
2016-06-09 12:24:25 +07:00
Marten Seemann
68e3c8e552
queue RTO retransmissions before checking for congestion window size
2016-06-08 12:08:38 +07:00
Lucas Clemente
0d6dbfe746
log stream GC
2016-06-06 23:37:10 +02:00
Lucas Clemente
6475a5bb3e
fix a race condition in session.handleWindowUpdateFrame
2016-06-06 23:36:48 +02:00
Lucas Clemente
6cc5440240
ensure session is closed when TooManyStreams occurs
2016-06-06 22:05:51 +02:00
Lucas Clemente
6d58618279
properly ignore errors in session
...
ref #170
2016-06-06 15:05:38 +02:00
Marten Seemann
c0d21ad070
log correct size of received packets
...
fixes #171
2016-06-06 19:32:37 +07:00
Marten Seemann
3f86e0f198
dequeue all retransmission when sending a packet
2016-06-06 12:04:02 +07:00
Lucas Clemente
981b465287
fix a race condition of openStreamsCount in session
2016-06-05 12:17:10 +02:00
Lucas Clemente
6a46465092
reduce calls to Debugf when not debugging to reduce slice allocs
...
ref #129
2016-06-04 15:13:46 +02:00
Lucas Clemente
68478ed3f1
fix a race condition with stream creation
...
fixes #164 , ref #163
2016-06-03 21:01:02 +02:00
Marten Seemann
2f49a9525a
add DataLen function to StreamFrame
2016-06-01 09:23:26 +07:00
Lucas Clemente
8fa3e62de9
implement parsing and writing of GOAWAY frames
2016-05-31 19:22:27 +02:00
Lucas Clemente
c546f5c9dc
enforce max streams per connection limit
...
fixes #13
2016-05-27 22:39:37 +02:00
Marten Seemann
ffbd68770e
remove closed streams from WindowUpdateManager
...
fixes #99
2016-05-27 19:08:05 +07:00
Marten Seemann
d906492ae7
don't retransmit a packet after receiving a belated ACK
...
fixes #139
2016-05-27 18:36:28 +07:00
Lucas Clemente
d4a189b2d1
refactor timer calculation in sesssion to reduce syscalls
2016-05-24 17:42:47 +02:00
Lucas Clemente
55fe1390b3
remove some allocations
...
ref #129
2016-05-24 15:36:35 +02:00
Lucas Clemente
6c2932a872
small session fixes
2016-05-24 13:22:10 +02:00