Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3: Encode ashd-wsgi3 output headers with utf-8 instead of latin-1.
[ashd.git]
/
src
/
htpipe.c
diff --git
a/src/htpipe.c
b/src/htpipe.c
index
223212e
..
02cbd35
100644
(file)
--- a/
src/htpipe.c
+++ b/
src/htpipe.c
@@
-19,6
+19,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <string.h>
#include <errno.h>
#include <err.h>
#include <sys/poll.h>
#include <errno.h>
#include <err.h>
#include <sys/poll.h>
@@
-124,6
+125,7
@@
static void runserver(int lsk, int ch)
if((rfd = recvreq(cl[i], &req)) < 0) {
if(errno != 0)
flog(LOG_ERR, "htpipe: error from client: %s", strerror(errno));
if((rfd = recvreq(cl[i], &req)) < 0) {
if(errno != 0)
flog(LOG_ERR, "htpipe: error from client: %s", strerror(errno));
+ close(cl[i]);
cl[i] = -1;
} else {
if(sendreq(ch, req, rfd)) {
cl[i] = -1;
} else {
if(sendreq(ch, req, rfd)) {