开发者

python multiprocessing server connections

开发者 https://www.devze.com 2022-12-27 13:31 出处:网络
I wish to get a list of connections to a manager. I can get last_accepted fr开发者_运维技巧om the servers\' listener, but I want all connections. There HAS to be a method I am missing somewhere to ret

I wish to get a list of connections to a manager. I can get last_accepted fr开发者_运维技巧om the servers' listener, but I want all connections. There HAS to be a method I am missing somewhere to return all connections to a server or manager Please help!!


Looking at multiprocessing/connection.py, the listener just doesn't seem to track all connections -- you could, however, subclass it and override accept to append accepted connections to a list.

0

精彩评论

暂无评论...
验证码 换一张
取 消