1
1

Flush (if appropriate) after a server-side message where we weren't before. (#795)

Also fix some stupid looking code and update a copyright.
Fixes #790.
Этот коммит содержится в:
Bruce A. Mah 2018-09-17 13:35:16 -07:00 коммит произвёл GitHub
родитель d95891b812
Коммит af34c411df
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -1,5 +1,5 @@
/*
* iperf, Copyright (c) 2014, 2015, 2016, 2017, The Regents of the University of
* iperf, Copyright (c) 2014-2018 The Regents of the University of
* California, through Lawrence Berkeley National Laboratory (subject
* to receipt of any required approvals from the U.S. Dept. of
* Energy). All rights reserved.
@ -88,10 +88,10 @@ iperf_server_listen(struct iperf_test *test)
if (!test->json_output) {
iperf_printf(test, "-----------------------------------------------------------\n");
iperf_printf(test, "Server listening on %d\n", test->server_port);
}
if (!test->json_output)
iperf_printf(test, "-----------------------------------------------------------\n");
if (test->forceflush)
iflush(test);
}
FD_ZERO(&test->read_set);
FD_ZERO(&test->write_set);