server_timer_proc - better handle server test time expiration#1914
server_timer_proc - better handle server test time expiration#1914bmah888 merged 3 commits intoesnet:masterfrom
Conversation
|
Thanks for the PR! Will review. |
|
I tried fixing up a couple merge conflicts so that we can test this a bit with |
bmah888
left a comment
There was a problem hiding this comment.
Thanks again for the PR and for your patience! I was about to approve and merge this PR but I thought of a (possibly silly) question. The new code you added to server_timer_proc() closes the socket for each test stream and also removes the stream object from the list of streams. That's all great. But I'm trying to figure out how the thread associated with the stream gets cancelled / ended. From what I can tell, this does happen but I can't tell how or where. Can you help me understand this part?
(Yes I should know because I wrote most of the original thread-handling code.)
Regarding the question, because the sockets are closed and Regarding the reason for the PR, I don't remember what was the exact problem, and for some reason I didn't described it, but I believe it was:
If I remember correctly, I added closing the sockets in |
bmah888
left a comment
There was a problem hiding this comment.
Look good after conflict resolution. Approved, and thanks for answering my questions, will merge this shortly.
Version of iperf3 (or development branch, such as
masteror3.1-STABLE) to which this pull request applies:make
Issues fixed (if any): none
Brief description of code changes (suitable for use as a commit message):
Enhancements to
server_timer_proc()for better handling of server test time expiration