Permalink
Browse files

Fix integration of SNMP in the event loop.

  • Loading branch information...
1 parent a00ea99 commit ceb6520305fc7307891173b7bc211f06bcc85ed1 @vincentbernat committed Feb 25, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 qcss3/collector/snmp.c
View
@@ -83,12 +83,8 @@ Snmp_updatereactor(void)
double to;
FD_ZERO(&fdset);
- timeout.tv_sec = 5;
- timeout.tv_usec = 0;
- block = 0;
+ block = 1;
snmp_select_info(&maxfd, &fdset, &timeout, &block);
- if (block == 1)
- timeout.tv_sec = 5;
for (fd = 0; fd < maxfd; fd++) {
if (FD_ISSET(fd, &fdset)) {
result = PyDict_Contains(SnmpFds, PyInt_FromLong(fd));

0 comments on commit ceb6520

Please sign in to comment.