Skip to content

Commit f9b0907

Browse files
Jamie-Changkfur
authored andcommitted
Update the example to work with 3.14 (MagicStack#710)
1 parent b771722 commit f9b0907

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)