irmen / Pyro5

Pyro 5 - Python remote objects
https://pyro5.readthedocs.io
MIT License
303 stars 36 forks source link

Referencing from a list of server cause issues. #61

Closed ZhendongTian closed 2 years ago

ZhendongTian commented 2 years ago

How to replicate? connect to a bunch of servers of different variable name, put them in a list, then reference the list by poping the element then putting them back to the list.

irmen commented 2 years ago

There's no reason regular list operations can cause issues, so please be more specific. how does the server code look like what does the client code look like What are the "issues": exact error message v.s. what you expected.

ZhendongTian commented 2 years ago

There's no reason regular list operations can cause issues, so please be more specific. how does the server code look like what does the client code look like What are the "issues": exact error message v.s. what you expected.

Server code is just bunch of different classes. class mock1 class mock2 class mock3 etc....

Client side code looks like this. mock1 = uri(mock1_uri) mock2 = uri(mock2_uri)..... mock_l = [mock1, mock2, mock3....] while True: mock = mock_l.pop() mock_l.append(mock) mock.dosmth()

This breaks the connection.

irmen commented 2 years ago

There is nothing in that code that indicates a fault in Pyro. Show the complete code of how you set up the server daemon, and the correct complete client code (because just an uri does nothing - it's a proxy you need.) I.e.: provide a full reproducible example. Also what exactly does "breaks the connection" mean ?

ZhendongTian commented 2 years ago

I will in a moment

There is nothing in that code that indicates a fault in Pyro. Show the complete code of how you set up the server daemon, and the correct complete client code (because just an uri does nothing - it's a proxy you need.) I.e.: provide a full reproducible example. Also what exactly does "breaks the connection" mean ?

Break the connection I mean the remote object become a NoneType. I’ll attach code in a moment.

irmen commented 2 years ago

this issue looks stale, I'm closing it. Feel free to reopen if you still encounter the issue though! But please attach some code that reproduces the issue.