Skip to content

Commit

Permalink
Merge pull request #1347 from jef-sure/master
Browse files Browse the repository at this point in the history
don't close $env->{'psgix.io'} on "PSGI cancel"
  • Loading branch information
unbit committed Aug 23, 2016
2 parents 9896a9e + 6456e76 commit 9930553
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/psgi/psgi_response.c
Expand Up @@ -63,6 +63,8 @@ int psgi_response(struct wsgi_request *wsgi_req, AV *response) {
if (av_len(response) == -1) {
// deliberately empty response
wsgi_req->status = 101;
// don't actually close socket, it must be closed by application itself
wsgi_req->fd_closed = 1;
return UWSGI_OK;
}

Expand Down

0 comments on commit 9930553

Please sign in to comment.