Close client connection on error

This commit is contained in:
dschmenk 2013-08-28 00:03:47 -07:00
parent cb402a78db
commit c35c2e78d8

View File

@ -998,8 +998,12 @@ reset:
} }
else else
{ {
FD_CLR(reqfd, &openset);
close(reqfd);
reqfd = 0;
coutfd = 0;
maxfd = a2fd > srvfd ? a2fd : srvfd;
prlog("a2pid: error read socket ????"); prlog("a2pid: error read socket ????");
state = RESET;
} }
} }
} }