summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2017-02-22 12:21:30 +0000
committerSander Vrijders <sander.vrijders@intec.ugent.be>2017-02-22 12:21:30 +0000
commitb3913bd7d7c1fb4cc82de750990d2111df2d9b2d (patch)
tree3581c9b1c9529f424947465373ff4212aea54d28
parent63cf8fdb4a79a08572e2488d65a040ba733bdfbc (diff)
parent3bb217a02158614ec6ab625b88a82471ea507f2e (diff)
downloadouroboros-b3913bd7d7c1fb4cc82de750990d2111df2d9b2d.tar.gz
ouroboros-b3913bd7d7c1fb4cc82de750990d2111df2d9b2d.zip
Merged in dstaesse/ouroboros/testing (pull request #388)
tools: Continue oping server after failed write
-rw-r--r--src/tools/oping/oping_server.c4
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);
- }
}
}