From 8007f6524bb59eb789dd7bd8cdaa93cf339b95b1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 13 Feb 2016 09:47:15 +1100 Subject: [PATCH] Writes blocking in send_sender_send are not an unlikely event --- src/connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 25000977..1ea69dc7 100644 --- a/src/connector.c +++ b/src/connector.c @@ -691,7 +691,7 @@ static bool send_sender_send(ckpool_t *ckp, cdata_t *cdata, sender_send_t *sende while (sender_send->len) { int ret = write(client->fd, sender_send->buf + sender_send->ofs, sender_send->len); - if (unlikely(ret < 1)) { + if (ret < 1) { /* Invalidate clients that block for more than 60 seconds */ if (unlikely(client->blocked_time && now_t - client->blocked_time >= 60)) { LOGNOTICE("Client id %"PRId64" fd %d blocked for >60 seconds, disconnecting",