Revision 327af97c mininet/net.py

View differences:

mininet/net.py
767 767
        cliout = client.cmd( iperfArgs + '-t %d -c ' % seconds +
768 768
                             server.IP() + ' ' + bwArgs )
769 769
        debug( 'Client output: %s\n' % cliout )
770
        servout = ''
771
        # We need the second *b/sec from the iperf server output
772
        while len( re.findall( '/sec', servout ) ) < 2:
773
            servout += server.monitor( timeoutms=5000 )
770 774
        server.sendInt()
771
        servout = server.waitOutput()
775
        server.waitOutput()
772 776
        debug( 'Server output: %s\n' % servout )
773 777
        result = [ self._parseIperf( servout ), self._parseIperf( cliout ) ]
774 778
        if l4Type == 'UDP':

Also available in: Unified diff