Example #1
0
 async def _handle_timer(self, timer: float,
                         connection: QuicConnection) -> None:
     wait = max(0, timer - self.context.time())
     await self.context.sleep(wait)
     if connection._close_at is not None:
         connection.handle_timer(now=self.context.time())
         await self._handle_events(connection, None)
Example #2
0
 async def _handle_timer(self, connection: QuicConnection) -> None:
     if connection._close_at is not None:
         connection.handle_timer(now=self.now())
         await self._handle_events(connection, None)