Changeset 3869

Show
Ignore:
Timestamp:
08/19/10 12:14:20 (1 year ago)
Author:
janl
Message:

* munin-node: Insert a reset_timeout() call to enable the master to get in a word in edgeways after a slow plugin has executed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/node/lib/Munin/Node/Server.pm

    r3864 r3869  
    147147    # catch and report any system errors in a clean way. 
    148148    eval { 
    149         # BUG: It appears that the plugin timeout is still in place 
    150         # when _net_read is executing.  Meaning that if the previous 
    151         # plugin takes close to $timeout time then there is very very 
    152         # short time for munin-update to issue a new command. 
    153         #  
    154  
    155149        $timed_out = !do_with_timeout($services->{timeout}, sub { 
    156150            while (defined ($line = _net_read($session))) { 
     
    160154                    last; 
    161155                } 
     156                # Reset timeout to wait a reasonable time for input 
     157                # from the master. 
     158                # Misfeature: Plugin timeout and input timeout are identical 
     159                reset_timeout(); 
    162160                $line = "<waiting for input from master, previous was '$line'>"; 
    163161            }