Showing
2 changed files
with
12 additions
and
10 deletions
1 | +2012-02-15 04:55:46 +0100 Georg Hopp | ||
2 | + | ||
3 | + * fix infinite busy loop in run (HEAD, master) | ||
4 | + | ||
1 | 2012-02-15 04:44:38 +0100 Georg Hopp | 5 | 2012-02-15 04:44:38 +0100 Georg Hopp |
2 | 6 | ||
3 | - * dynamically get and free buffer for response write pipe now (HEAD, master) | 7 | + * dynamically get and free buffer for response write pipe now (origin/master, origin/HEAD) |
4 | 8 | ||
5 | 2012-02-14 21:32:38 +0100 Georg Hopp | 9 | 2012-02-14 21:32:38 +0100 Georg Hopp |
6 | 10 | ||
7 | - * increase write buffer (origin/master, origin/HEAD) | 11 | + * increase write buffer |
8 | 12 | ||
9 | 2012-02-13 21:27:47 +0100 Georg Hopp | 13 | 2012-02-13 21:27:47 +0100 Georg Hopp |
10 | 14 |
@@ -168,14 +168,12 @@ serverRun(Server this) | @@ -168,14 +168,12 @@ serverRun(Server this) | ||
168 | 168 | ||
169 | message = (HttpMessage)streamWriterWrite(writer, fd); | 169 | message = (HttpMessage)streamWriterWrite(writer, fd); |
170 | 170 | ||
171 | - if (NULL != message && writer->state == HTTP_RESPONSE_GET) { | ||
172 | - if (httpMessageHasKeepAlive(message)) { | ||
173 | - (this->fds)[i].events &= ~POLLOUT; | ||
174 | - } | ||
175 | - else { | ||
176 | - delete(&message); | ||
177 | - serverCloseConn(this, i); | ||
178 | - } | 171 | + if (NULL == message) { |
172 | + (this->fds)[i].events &= ~POLLOUT; | ||
173 | + } | ||
174 | + else { | ||
175 | + delete(&message); | ||
176 | + serverCloseConn(this, i); | ||
179 | } | 177 | } |
180 | } | 178 | } |
181 | } | 179 | } |
Please
register
or
login
to post a comment