diff options
author | Dimitri Staessens <[email protected]> | 2018-03-23 23:51:39 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-03-25 12:15:03 +0200 |
commit | 2975db4c62d9fba5cecc265ce794c7371f835953 (patch) | |
tree | faef3b0607d6fcbebaffae55514fc68c483abf9a /src/tools/ocbr/ocbr_server.c | |
parent | e78740a4da0feb678f22bbc22b4c14a1f9a7bf7f (diff) | |
download | ouroboros-2975db4c62d9fba5cecc265ce794c7371f835953.tar.gz ouroboros-2975db4c62d9fba5cecc265ce794c7371f835953.zip |
tools: Increase read buffer in ocbr server
The ocbr server had a 1500 byte read buffer, which caused it to
perform partial reads on larger SDUs, slowing it down considerably
when sendin large packets. The buffer has been increased to 512KB,
partial reads disabled, and the client will give an error when larger
frames are sent. It will also warn if the size overflows (avoiding a
SEGV).
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/tools/ocbr/ocbr_server.c')
-rw-r--r-- | src/tools/ocbr/ocbr_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ocbr/ocbr_server.c b/src/tools/ocbr/ocbr_server.c index 3004d77c..4f080eff 100644 --- a/src/tools/ocbr/ocbr_server.c +++ b/src/tools/ocbr/ocbr_server.c @@ -100,7 +100,7 @@ static void handle_flow(int fd) alive = iv_start; ts_add(&iv_start, &intv, &iv_end); - fccntl(fd, FLOWSFLAGS, FLOWFRNOBLOCK | FLOWFRDWR); + fccntl(fd, FLOWSFLAGS, FLOWFRNOBLOCK | FLOWFRDWR | FLOWFRNOPART); while (!stop) { clock_gettime(CLOCK_REALTIME, &now); |