Browse Source

reset keep_live flag on connection close

master
Georg Hopp 14 years ago
parent
commit
cb50f09adc
  1. 6
      ChangeLog
  2. 4
      src/server/close_conn.c

6
ChangeLog

@ -1,6 +1,10 @@
2012-02-10 09:59:41 +0100 Georg Hopp
* reset keep_live flag on connection close (HEAD, master)
2012-02-10 09:52:27 +0100 Georg Hopp 2012-02-10 09:52:27 +0100 Georg Hopp
* made a first cruel handling for keep-alive and non keep-alive requests. @TODO: this MUST BE cleaned (HEAD, master)
* made a first cruel handling for keep-alive and non keep-alive requests. @TODO: this MUST BE cleaned
2012-02-10 08:14:31 +0100 Georg Hopp 2012-02-10 08:14:31 +0100 Georg Hopp

4
src/server/close_conn.c

@ -10,10 +10,14 @@ serverCloseConn(Server this, unsigned int i)
delete(&((this->conns)[fd].sock)); delete(&((this->conns)[fd].sock));
delete(&((this->conns)[fd].reader)); delete(&((this->conns)[fd].reader));
memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf)); memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf));
(this->conns)[fd].keep_alive = 0;
(this->fds)[i].events = 0; (this->fds)[i].events = 0;
(this->fds)[i].revents = 0; (this->fds)[i].revents = 0;
(this->fds)[i].fd = 0; (this->fds)[i].fd = 0;
this->ndel++; this->ndel++;
// CLEAR_CONN(this, i); // CLEAR_CONN(this, i);
// this->nfds--; // this->nfds--;

Loading…
Cancel
Save