exec: increase maximum execution time to 120s
[oweals/rpcd.git] / include / rpcd / exec.h
index efe4ccace509e89e2982c839ca0f3a75c348604f..01981fe34e5d389b1e5591930f7bdb865905ca04 100644 (file)
@@ -24,7 +24,7 @@
 #include <libubox/ustream.h>
 
 #define RPC_EXEC_MAX_SIZE              (4096 * 64)
-#define RPC_EXEC_MAX_RUNTIME   (30 * 1000)
+#define RPC_EXEC_DEFAULT_TIMEOUT       (120 * 1000)
 
 #define ustream_for_each_read_buffer(stream, ptr, len) \
        for (ptr = ustream_get_read_buf(stream, &len);     \
@@ -50,6 +50,7 @@
                ustream_fd_init(&us, fd);                             \
        } while(0)
 
+extern int exec_timeout;
 
 typedef int (*rpc_exec_write_cb_t)(struct ustream *, void *);
 typedef int (*rpc_exec_read_cb_t)(struct blob_buf *, char *, int, void *);