set a default for script timeout
[project/uhttpd.git] / uhttpd.h
index 0c1cd8b..1e487f8 100644 (file)
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -28,6 +28,7 @@
 #include <libubox/uloop.h>
 #include <libubox/ustream.h>
 #include <libubox/blob.h>
+#include <libubox/utils.h>
 
 #include "utils.h"
 
@@ -47,13 +48,14 @@ struct config {
        int tcp_keepalive;
        int max_requests;
        int http_keepalive;
+       int script_timeout;
 };
 
 struct auth_realm {
        struct list_head list;
-       char path[PATH_MAX];
-       char user[32];
-       char pass[128];
+       char *path;
+       char *user;
+       char *pass;
 };
 
 enum http_method {