[dovecot/core] 7a8d8f: lib-http: server: Fix premature connection destroy...

GitHub noreply at github.com
Tue Jan 31 19:30:14 UTC 2017


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 7a8d8f4bea89eaa579fa0a02357bcad9a6abe3e3
      https://github.com/dovecot/core/commit/7a8d8f4bea89eaa579fa0a02357bcad9a6abe3e3
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/lib-http/http-server-connection.c

  Log Message:
  -----------
  lib-http: server: Fix premature connection destroy in http_server_connection_output().

Added a reference to the connection object while it is sending the remainder of a response's payload.
This is necessary, since http_server_response_send_more() can destroy the connection, for example when the request has a "Connection: close" header.
This will only occur for responses with a very large payload, because otherwise the payload is fully sent in in the initial pass.




More information about the dovecot-cvs mailing list