ngie
2b83f8a713
Make server_cat(..)
handle short receives
...
In short, the prior code was far too simplistic when it came to calling recv(2)
and failed intermittently (or in the case of Jenkins, deterministically).
Handle short recv(2)s by checking the return code and incrementing the window
into the buffer by the number of received bytes. If the number of received
bytes <= 0, then bail out of the loop, and test the total number of received
bytes vs the expected number of bytes sent for equality, and base whether or
not the test passes/fails on that fact.
Remove the expected failure, now that the hdtr testcases deterministically pass
on my host after this change [1].
PR: 234809 [1], 235200
Reviewed by: asomers
Approved by: emaste (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D19188
2019-02-19 22:19:31 +00:00
..
2017-10-31 00:07:04 +00:00
2019-02-18 19:07:15 +00:00
2019-01-12 21:29:54 +00:00
2018-11-27 14:58:19 +00:00
2018-09-19 09:29:06 +00:00
2018-09-18 20:54:37 +00:00
2019-02-12 23:24:45 +00:00
2018-07-28 20:04:39 +00:00
2019-02-13 04:19:08 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-21 19:28:53 +00:00
2017-11-26 02:00:33 +00:00
2018-07-28 20:04:39 +00:00
2018-07-03 08:44:40 +00:00
2017-10-31 00:07:04 +00:00
2019-02-19 22:19:31 +00:00
2017-11-26 02:00:33 +00:00
2018-08-02 18:24:03 +00:00
2018-08-02 18:24:03 +00:00
2018-08-02 18:24:03 +00:00
2017-11-26 02:00:33 +00:00
2017-12-27 21:36:37 +00:00
2019-01-21 20:56:29 +00:00
2019-02-06 04:36:28 +00:00
2018-11-04 15:46:30 +00:00
2017-10-31 00:07:04 +00:00
2018-10-28 02:58:15 +00:00
2018-02-02 05:04:43 +00:00
2018-07-20 07:16:28 +00:00
2017-10-31 00:07:04 +00:00
2018-01-23 22:41:13 +00:00
2018-08-23 05:08:38 +00:00
2018-02-14 23:52:39 +00:00
2018-05-31 02:58:03 +00:00
2017-11-26 02:00:33 +00:00
2018-03-29 19:43:29 +00:00
2018-06-16 20:00:41 +00:00
2017-10-31 00:07:04 +00:00
2019-01-16 21:59:18 +00:00
2019-02-04 21:28:25 +00:00
2019-01-10 14:35:23 +00:00
2019-01-10 14:35:23 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-11-04 16:08:59 +00:00
2018-11-27 16:23:17 +00:00
2019-01-26 22:24:15 +00:00
2018-08-10 19:57:55 +00:00
2018-01-31 21:41:42 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2018-07-08 23:22:04 +00:00
2018-04-23 21:10:33 +00:00
2018-03-11 19:26:34 +00:00
2018-03-21 14:37:04 +00:00
2018-11-10 03:10:22 +00:00
2017-11-26 02:00:33 +00:00
2019-01-30 02:07:13 +00:00
2018-10-12 05:27:58 +00:00
2019-01-09 05:30:46 +00:00
2018-06-27 19:29:15 +00:00
2018-08-26 17:05:43 +00:00
2019-02-18 21:27:13 +00:00
2017-10-31 00:07:04 +00:00
2018-09-19 07:05:31 +00:00
2017-11-03 21:04:22 +00:00
2017-11-26 02:00:33 +00:00
2018-07-30 15:46:40 +00:00
2017-11-08 12:34:47 +00:00
2017-10-31 00:07:04 +00:00
2019-02-10 23:28:55 +00:00
2018-12-05 10:58:02 +00:00
2018-04-04 14:31:56 +00:00
2018-09-20 09:26:10 +00:00
2018-09-13 16:14:33 +00:00
2017-10-31 19:52:30 +00:00
2018-05-30 08:24:57 +00:00
2018-07-03 15:48:34 +00:00
2019-02-05 00:31:25 +00:00
2018-05-26 19:29:19 +00:00
2018-07-27 20:34:15 +00:00
2019-01-27 00:46:06 +00:00
2018-09-19 07:06:20 +00:00
2018-01-29 14:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-11-18 14:26:50 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2019-01-30 09:44:54 +00:00
2018-09-20 09:31:27 +00:00
2019-01-12 17:56:23 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2019-02-04 13:30:47 +00:00
2017-11-26 02:00:33 +00:00
2017-07-31 19:07:45 +00:00
2019-02-13 18:28:53 +00:00
2018-08-02 12:24:34 +00:00
2017-10-31 00:07:04 +00:00
2018-12-11 22:14:37 +00:00
2018-07-03 23:47:20 +00:00
2017-11-26 02:00:33 +00:00
2018-10-10 08:19:11 +00:00
2018-10-11 13:58:51 +00:00
2017-11-26 02:00:33 +00:00
2019-02-07 22:10:20 +00:00
2018-06-20 00:55:18 +00:00
2017-11-26 02:00:33 +00:00
2018-09-06 20:29:40 +00:00
2018-09-22 13:17:30 +00:00
2018-05-23 01:20:31 +00:00
2018-06-17 18:05:27 +00:00
2017-11-26 02:00:33 +00:00
2018-12-06 20:03:06 +00:00
2018-12-29 21:18:01 +00:00
2019-02-10 08:46:07 +00:00
2018-10-23 06:31:31 +00:00
2018-07-20 23:49:57 +00:00
2018-12-29 06:51:10 +00:00