Skip to content

iperf3 stops working after a while #61

@Booleanac

Description

@Booleanac

Hello,

Let me explain the situation. I have a server that periodically sends commands to a bunch of clients (I have written the client and the server code), when the command is sent, the clients perform an iperf test.
The server runs iperf3 servers is separate processes (no python here, just plain terminal window). So the server is fine.
The client is using asyncio to run the code that accepts commands and then runs iper3 test. This works find for a while, but after a week or so, iper3 no longer runs any test. Here is the code for running the iper3 test:

MyFunction(protocol,duration,port):
client=iperf3.Client()
client.duration=int(duration)
client.port=port
client.bind_port=17801
client.server_hostname='IP address of the server machine'
client.protocol=protocol
client.reverse=True
a=client.run()
return a

The current parameter, with which the software runs fine for a while, are - protocol TCP, duration 10.
What happens is after a while, this code does not initiate a test. I can see whether a test is being run on the iperf server, and nothing happens. Not even an initiation of a connection. I can verify the code is running on the client as I have remote access to these client boxes. I use as px and I see the process running. On the same client box, where the script is failing, if I run the iperf3 test from the terminal it works fine, and I can see the test on the server as well.
I used strace on the process, and I get the following exception:

image

This is inline with client.run() not running the test for some reason.
The function above is run by asyncio that is run in the main thread.
I am going to continue troubleshooting, but it would be great if you can help me.

OS-CentOS Linux 7 (Core)
Python3 version Python 3.6.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions