Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 162176 Details for
Bug 233440
sys-cluster/ganglia-3.1.0 ganglia version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to eliminate concurrency problems and latency for tcpconn python module
ganglia-3.1-gmond-python-tcpconn-concurrency.patch (text/plain), 1.67 KB, created by
Carlo Marcelo Arenas Belon
on 2008-08-04 08:51:32 UTC
(
hide
)
Description:
patch to eliminate concurrency problems and latency for tcpconn python module
Filename:
MIME Type:
Creator:
Carlo Marcelo Arenas Belon
Created:
2008-08-04 08:51:32 UTC
Size:
1.67 KB
patch
obsolete
>Index: gmond/python_modules/network/tcpconn.py >=================================================================== >--- gmond/python_modules/network/tcpconn.py (revision 1622) >+++ gmond/python_modules/network/tcpconn.py (working copy) >@@ -245,19 +245,14 @@ > tempconns[conn] = 0 > > #Call the netstat utility and split the output into separate lines >- fd_poll = select.poll() >- self.popenChild = popen2.Popen3("netstat -t -a") >- fd_poll.register(self.popenChild.fromchild) >+ self.popenChild = popen2.Popen3("netstat -t -a -n") >+ lines = self.popenChild.fromchild.readlines() > >- poll_events = fd_poll.poll() >- >- if (len(poll_events) == 0): # Timeout >- continue >- >- for (fd, events) in poll_events: >- lines = self.popenChild.fromchild.readlines() >- >- self.popenChild.wait() >+ try: >+ self.popenChild.wait() >+ except OSError, e: >+ if e.errno == 10: # No child process >+ continue > > #Iterate through the netstat output looking for the 'tcp' keyword in the tcp_at > # position and the state information in the tcp_state_at position. Count each >@@ -300,7 +295,8 @@ > _glock.release() > > #Wait for the refresh_rate period before collecting the netstat data again. >- time.sleep(_refresh_rate) >+ if not self.shuttingdown: >+ time.sleep(_refresh_rate) > > #Set the current state of the thread after a shutdown has been indicated. > self.running = False
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233440
:
162048
| 162176 |
162180