Skip to content

Commit 1605bc3

Browse files
committed
Update the example to work with 3.14
1 parent 74f4c96 commit 1605bc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/bench/echoclient.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44

55
import argparse
66
import concurrent.futures
7+
import multiprocessing
78
import socket
89
import ssl
910
import time
1011

1112

1213
if __name__ == '__main__':
14+
multiprocessing.set_start_method("fork")
15+
1316
parser = argparse.ArgumentParser()
1417
parser.add_argument('--msize', default=1000, type=int,
1518
help='message size in bytes')

0 commit comments

Comments
 (0)