Skip to content

Commit

Permalink
Decrease minimal Hello and Window to tolerate OpenBSD values
Browse files Browse the repository at this point in the history
  • Loading branch information
catap committed Jul 8, 2024
1 parent 9bc1e43 commit 8b042e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2790,7 +2790,7 @@ def test_send_max_data_blocked_by_cc(self):
# window too strictly as its exact value depends on the size
# of our ACKs, which depends on the execution time.
self.assertEqual(client._loss.bytes_in_flight, 0)
self.assertGreaterEqual(client._loss.congestion_window, 13530)
self.assertGreaterEqual(client._loss.congestion_window, 13472)
self.assertLessEqual(client._loss.congestion_window, 13540)

# artificially raise received data counter
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def reset_buffers(buffers):
class ContextTest(TestCase):
def assertClientHello(self, data: bytes):
self.assertEqual(data[0], tls.HandshakeType.CLIENT_HELLO)
self.assertGreaterEqual(len(data), 191)
self.assertGreaterEqual(len(data), 189)
self.assertLessEqual(len(data), 564)

def create_client(
Expand Down

0 comments on commit 8b042e3

Please sign in to comment.