diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-22 12:21:30 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2017-02-22 12:21:30 +0000 |
commit | b3913bd7d7c1fb4cc82de750990d2111df2d9b2d (patch) | |
tree | 3581c9b1c9529f424947465373ff4212aea54d28 /src | |
parent | 63cf8fdb4a79a08572e2488d65a040ba733bdfbc (diff) | |
parent | 3bb217a02158614ec6ab625b88a82471ea507f2e (diff) | |
download | ouroboros-b3913bd7d7c1fb4cc82de750990d2111df2d9b2d.tar.gz ouroboros-b3913bd7d7c1fb4cc82de750990d2111df2d9b2d.zip |
Merged in dstaesse/ouroboros/testing (pull request #388)
tools: Continue oping server after failed write
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/oping/oping_server.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/oping/oping_server.c b/src/tools/oping/oping_server.c index d7294fa1..24cd9bf1 100644 --- a/src/tools/oping/oping_server.c +++ b/src/tools/oping/oping_server.c @@ -100,10 +100,8 @@ void * server_thread(void *o) msg->type = htonl(ECHO_REPLY); - if (flow_write(fd, buf, msg_len) < 0) { + if (flow_write(fd, buf, msg_len) < 0) printf("Error writing to flow (fd %d).\n", fd); - flow_dealloc(fd); - } } } |