Skip to content

Commit 90d93c3

Browse files
committed
I now realize that approach was bad.
1 parent c776679 commit 90d93c3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4630,16 +4630,13 @@ def test_thread_recv_while_main_thread_sends(self):
46304630
# that the recv() call held.
46314631
data = b"1" * 50
46324632
event = threading.Event()
4633-
event2 = threading.Event()
46344633
def background(sock):
46354634
event.set()
4636-
event2.wait()
46374635
received = sock.recv(50)
46384636
self.assertEqual(received, data)
46394637

46404638
client_context, server_context, hostname = testing_context()
4641-
server = ThreadedEchoServer(context=server_context,
4642-
chatty=False, connectionchatty=False)
4639+
server = ThreadedEchoServer(context=server_context)
46434640
with server:
46444641
with client_context.wrap_socket(socket.socket(),
46454642
server_hostname=hostname) as sock:
@@ -4651,7 +4648,6 @@ def background(sock):
46514648
thread.start()
46524649
# Use two events to prevent some race conditions here.
46534650
event.wait()
4654-
event2.set()
46554651
sock.sendall(b"1" * 50)
46564652
thread.join()
46574653
if cm.exc_value is not None:

0 commit comments

Comments
 (0)