浏览代码

Close the parent process' copy of the socket.

The parent process should close its copy of the socket descriptor.
Steven Engler 6 年之前
父节点
当前提交
3788690716
共有 1 个文件被更改,包括 2 次插入0 次删除
  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)
 		#