packages feed

quic 0.3.26 → 0.3.27

raw patch · 3 files changed

+16/−6 lines, 3 files

Files

ChangeLog.md view
@@ -1,9 +1,18 @@ # ChangeLog +## 0.3.27++A fix for the 0.3.26 handshake timeout, which a peer that kept sending+packets never met.++* Check the server's handshake deadline before taking a packet+  [#298](https://github.com/kazu-yamamoto/quic/pull/298)+ ## 0.3.26 -Security fixes against unauthenticated peers.  Adds `scMaxHandshakes`-and `scMaxHandshakesPerAddress`.+Security fixes against unauthenticated peers, reported by Yuqi Qiu and+Xiang Li, Nankai University (AOSP Lab).  Adds `scMaxHandshakes` and+`scMaxHandshakesPerAddress`.  * Bound the packets kept until their keys are there * Restart the idle timer only on packets that decrypt
Network/QUIC/Receiver.hs view
@@ -86,7 +86,8 @@             _ -> return Nothing     ended = Ended <$ connectionEndedSTM conn     -- Not once the handshake is over: this loop learns that only from the-    -- next packet, which an idle peer may not send.+    -- next packet, which an idle peer may not send.  Waited on before the+    -- packet: a peer keeping the queue full would otherwise never meet it.     handshakeOver inHandshake         | inHandshake = do             readTVar hsExpired >>= STM.check@@ -103,7 +104,7 @@         atomically $ writeTVar (connAckElicitingSent conn) False     waitIdle inHandshake Nothing =         atomically $-            ended `orElse` (Got <$> connRecv conn) `orElse` handshakeOver inHandshake+            ended `orElse` handshakeOver inHandshake `orElse` (Got <$> connRecv conn)     waitIdle inHandshake mito@(Just us) = do         sent <- readTVarIO $ connAckElicitingSent conn         counted <- readIORef sendCounted@@ -118,9 +119,9 @@         r <-             atomically $                 ended+                    `orElse` handshakeOver inHandshake                     `orElse` (Got <$> connRecv conn)                     `orElse` (Restarted <$ restarted)-                    `orElse` handshakeOver inHandshake                     `orElse` (Expired <$ (readTVar expired >>= STM.check))         case r of             Restarted -> waitIdle inHandshake mito
quic.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.0 name:               quic-version:            0.3.26+version:            0.3.27 license:            BSD3 license-file:       LICENSE maintainer:         kazu@iij.ad.jp