[GH-ISSUE #653] Multiple threads from hostdetails.py connections. need solution for to-do items of this file. #497

Open
opened 2026-02-27 16:39:28 +03:00 by kerem · 1 comment
Owner

Originally created by @Priyanka12345678910 on GitHub (Dec 20, 2017).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/653

Hi,

Is there any solution of below two things which are in to-do list for /webvirtmgr/blob/master/vrtManager/hostdetails.py ? It is spawning multiple threads for all the connections on every refresh of the page. If someone can look at it asap it would be great.

class wvmConnection(object):
"""
class representing a single connection stored in the Connection Manager
# to-do: may also need some locking to ensure to not connect simultaniously in 2 threads
"""
..................................................
def close(self):
"""Close connection"""
# to-do: do not close connection ;)
# self.wvm.close()
pass

Originally created by @Priyanka12345678910 on GitHub (Dec 20, 2017). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/653 Hi, Is there any solution of below two things which are in to-do list for /webvirtmgr/blob/master/vrtManager/hostdetails.py ? It is spawning multiple threads for all the connections on every refresh of the page. If someone can look at it asap it would be great. class wvmConnection(object): """ class representing a single connection stored in the Connection Manager # to-do: may also need some locking to ensure to not connect simultaniously in 2 threads """ .................................................. def close(self): """Close connection""" # to-do: do not close connection ;) # self.wvm.close() pass
Author
Owner

@Priyanka12345678910 commented on GitHub (Dec 20, 2017):

Please someone help me on this.

<!-- gh-comment-id:353155238 --> @Priyanka12345678910 commented on GitHub (Dec 20, 2017): Please someone help me on this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#497
No description provided.