Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
[ashd.git]
/
src
/
patplex.c
diff --git
a/src/patplex.c
b/src/patplex.c
index
692d480
..
d0e2dad
100644
(file)
--- a/
src/patplex.c
+++ b/
src/patplex.c
@@
-472,6
+472,14
@@
static struct pattern *findmatch(struct config *cf, struct hthead *req, int tryd
return(NULL);
}
return(NULL);
}
+static void childerror(struct hthead *req, int fd)
+{
+ if(errno == EAGAIN)
+ simpleerror(fd, 500, "Server Error", "The request handler is overloaded.");
+ else
+ simpleerror(fd, 500, "Server Error", "The request handler crashed.");
+}
+
static void serve(struct hthead *req, int fd)
{
struct pattern *pat;
static void serve(struct hthead *req, int fd)
{
struct pattern *pat;
@@
-511,7
+519,7
@@
static void serve(struct hthead *req, int fd)
headappheader(req, head->name, head->value);
}
if(childhandle(ch, req, fd, NULL, NULL))
headappheader(req, head->name, head->value);
}
if(childhandle(ch, req, fd, NULL, NULL))
-
simpleerror(fd, 500, "Server Error", "The request handler crashed."
);
+
childerror(req, fd
);
}
static void reloadconf(char *nm)
}
static void reloadconf(char *nm)