From 30df779bfaf72961bf04feb354d8ad320a5f889e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 9 Aug 2014 15:27:12 +1000 Subject: [PATCH] Polling on a blocked writer should be 100ms not 1ms --- src/connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 33ce7f90..fd11a385 100644 --- a/src/connector.c +++ b/src/connector.c @@ -343,7 +343,7 @@ void *sender(void *arg) if (!polling) timeout_ts.tv_sec += 1; else { - ts_t wait_ts = {0, 1000000}; + ts_t wait_ts = {0, 100000000}; timeraddspec(&timeout_ts, &wait_ts); } pthread_cond_timedwait(&sender_cond, &sender_lock, &timeout_ts);