Changeset 3870

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

* munin-node: Insert a reset_timeout() to enable munin-update to get a word in edgeways after executing a slow plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4-stable/node/lib/Munin/Node/Server.pm

    r3865 r3870  
    137137    # catch and report any system errors in a clean way. 
    138138    eval { 
    139         # BUG: It appears that the plugin timeout is still in place 
    140         # when _net_read is executing.  Meaning that if the previous 
    141         # plugin takes close to $timeout time then there is very very 
    142         # short time for munin-update to issue a new command. 
    143         #  
    144139        $timed_out = !do_with_timeout($config->{'timeout'}, sub { 
    145140            while (defined ($line = _net_read($session))) { 
     
    150145                } 
    151146                $line = "<waiting for input from master, previous was '$line'>"; 
     147                # Reset timeout to wait a reasonable time for input from the master 
     148                # Misfeature: Plugin timeout and input timeout becomes identical. 
     149                reset_timeout(); 
    152150            } 
    153151        });