~ubuntu-branches/ubuntu/saucy/uwsgi/saucy

« back to all changes in this revision

Viewing changes to plugins/php/php_plugin.c

  • Committer: Package Import Robot
  • Author(s): Janos Guljas
  • Date: 2012-04-30 17:35:22 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120430173522-qucwu1au3s9bflhb
Tags: 1.2+dfsg-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
{
95
95
        struct wsgi_request *wsgi_req = (struct wsgi_request *) SG(server_context);
96
96
 
97
 
        ssize_t len = wsgi_req->socket->proto_write(wsgi_req, (char *) str, str_length);
98
 
        if (len != (ssize_t) str_length) {
 
97
        wsgi_req->response_size += wsgi_req->socket->proto_write(wsgi_req, (char *) str, str_length);
 
98
        if (wsgi_req->write_errors > uwsgi.write_errors_tolerance) {
99
99
                php_handle_aborted_connection();
100
100
                return -1;
101
101
        }
102
 
        wsgi_req->response_size += len;
103
102
        return str_length;
104
103
}
105
104
 
351
350
        }
352
351
 
353
352
        uwsgi_wlock(uwsgi.cache_lock);
354
 
        if (uwsgi_cache_del(key, keylen)) {
 
353
        if (uwsgi_cache_del(key, keylen, 0)) {
355
354
                uwsgi_rwunlock(uwsgi.cache_lock);
356
355
                RETURN_TRUE;
357
356
        }