iperf icon indicating copy to clipboard operation
iperf copied to clipboard

api request: Add function iperf_server_end (similar to iperf_client_end)

Open quanmltya opened this issue 1 year ago • 2 comments

I'm using iperf api in a program but it lacks the ability to programmatically stop the server. Client api has iperf_client_end but the server one does not have the similar function.

Currently I invoke the method cleanup_server(test) for stopping the server, but by doing this, the application sometimes crashes with the signal 13 (SIGPIPE). The stream could be writing at that time.

quanmltya avatar Jul 12 '23 10:07 quanmltya

Just to make sure I'm understand you correctly, you'd like a method that tears down the server cleanly? Would a separate thread or process be controlling the server in your program?

swlars avatar Jul 12 '23 21:07 swlars

Yes. The method to tear down the server is missing.

quanmltya avatar Jul 16 '23 02:07 quanmltya