diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-05-07 17:43:18 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-05-07 17:55:07 +0200 |
commit | f57748cace780875adb92a1bb61e0b12550e052d (patch) | |
tree | c1362db69c9eeac7039c5361f3de2f32137e4710 /src/tools/oping/oping_client.c | |
parent | e68f30878384b6c13ea0cc3bb6681504c66ff712 (diff) | |
download | ouroboros-f57748cace780875adb92a1bb61e0b12550e052d.tar.gz ouroboros-f57748cace780875adb92a1bb61e0b12550e052d.zip |
tools: Disable partial reads in oping
The oping tool was using a 1500 byte buffer, but didn't account for
partial reads when sending 1500 byte packets. This disables the
partial reads.
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/tools/oping/oping_client.c')
-rw-r--r-- | src/tools/oping/oping_client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/oping/oping_client.c b/src/tools/oping/oping_client.c index 6f874dd9..d026a683 100644 --- a/src/tools/oping/oping_client.c +++ b/src/tools/oping/oping_client.c @@ -215,6 +215,8 @@ static int client_main(void) return -1; } + fccntl(fd, FLOWSFLAGS, FLOWFRDWR | FLOWFRNOPART); + clock_gettime(CLOCK_REALTIME, &tic); pthread_create(&client.reader_pt, NULL, reader, &fd); |