raster pushed a commit to branch master.
commit bb4539c82652e88c9908fa75b6214723977ec2e7
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Tue Jul 9 19:56:18 2013 +0900
ethumbd timeout to 30s to not timeout in middle of long generate
---
src/bin/ethumb_client/ethumbd.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/bin/ethumb_client/ethumbd.c b/src/bin/ethumb_client/ethumbd.c
index 9bf023b..c09c89a 100644
--- a/src/bin/ethumb_client/ethumbd.c
+++ b/src/bin/ethumb_client/ethumbd.c
@@ -393,6 +393,11 @@ _generated_cb(Ethumbd *ed, Eina_Bool success, const char
*thumb_path, const char
eina_stringshare_del(ed->processing->thumb_key);
free(ed->processing);
ed->processing = NULL;
+ if (!ed->queue.count)
+ {
+ _ethumbd_timeout_stop(ed);
+ _ethumbd_timeout_start(ed);
+ }
}
static void
@@ -497,6 +502,11 @@ _ethumbd_slave_data_read_cb(void *data, int type
EINA_UNUSED, void *event)
}
}
+ if (!ed->queue.count)
+ {
+ _ethumbd_timeout_stop(ed);
+ _ethumbd_timeout_start(ed);
+ }
return 1;
}
@@ -711,8 +721,11 @@ _process_queue_cb(void *data)
if (!queue->nqueue)
{
ed->idler = NULL;
- if (!queue->count)
- _ethumbd_timeout_start(ed);
+ if (!ed->queue.count)
+ {
+ _ethumbd_timeout_stop(ed);
+ _ethumbd_timeout_start(ed);
+ }
ed->idler = NULL;
return 0;
}
@@ -1690,7 +1703,7 @@ main(int argc, char *argv[])
int arg_idx;
Ethumbd ed;
int child;
- double timeout = 10.0;
+ double timeout = 30.0;
memset(&ed, 0, sizeof(ed));
ecore_init();
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk