Browse Source

Close the parent process' copy of the socket.

The parent process should close its copy of the socket descriptor.
Steven Engler 5 years ago
parent
commit
3788690716
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bandwidth_tester.py

+ 2 - 0
src/bandwidth_tester.py

@@ -174,6 +174,8 @@ if __name__ == '__main__':
 			processes.append(p)
 			processes_map[conn_id] = p
 			p.start()
+			socket.close()
+			# close this process' copy of the socket
 		#
 		l = basic_protocols.ServerListener(endpoint, accept_callback)
 		#