[dovecot/core] 8b223f: lib-http: message parser: Don't create the connect...

GitHub noreply at github.com
Wed Feb 15 12:30:10 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 8b223f08b8ab40fd4e6a65542aac9ab6afc6839d
      https://github.com/dovecot/core/commit/8b223f08b8ab40fd4e6a65542aac9ab6afc6839d
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
    M src/lib-http/http-message-parser.c
    M src/lib-http/http-request.c

  Log Message:
  -----------
  lib-http: message parser: Don't create the connection_options array, unless it is actually used.


  Commit: b04dfad6b03e3809ccbca7f504ba44c6ab7dfad5
      https://github.com/dovecot/core/commit/b04dfad6b03e3809ccbca7f504ba44c6ab7dfad5
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
    M src/lib-http/http-message-parser.c

  Log Message:
  -----------
  lib-http: message parser: Delay allocation of message header.


  Commit: 1ec26e0b70ac7f8a4e3dfbc59aa77f572651d5ae
      https://github.com/dovecot/core/commit/1ec26e0b70ac7f8a4e3dfbc59aa77f572651d5ae
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
    M src/lib-http/http-message-parser.c
    M src/lib-http/http-message-parser.h
    M src/lib-http/http-request-parser.c
    M src/lib-http/http-response-parser.c

  Log Message:
  -----------
  lib-http: message parser: Don't allocate a pool for the next message until it is needed.

This prevents wasting memory when no message is being parsed.


  Commit: 5a7107476ff29592bcbf736d8a1ebb196a5c5726
      https://github.com/dovecot/core/commit/5a7107476ff29592bcbf736d8a1ebb196a5c5726
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
    M src/lib-http/test-http-response-parser.c

  Log Message:
  -----------
  lib-http: test-http-response-parse: Properly test multiple sequential responses.


  Commit: 88ead42eefcad4af0313f55275de196f96e8f002
      https://github.com/dovecot/core/commit/88ead42eefcad4af0313f55275de196f96e8f002
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
    M src/lib-http/http-response-parser.c

  Log Message:
  -----------
  lib-http: response parser: Always clear response to prevent referring to stale data.


  Commit: c177bc7c153dd4d00dfa719f8a93c81129c4235e
      https://github.com/dovecot/core/commit/c177bc7c153dd4d00dfa719f8a93c81129c4235e
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
    M src/lib-http/http-response-parser.c

  Log Message:
  -----------
  lib-http: response parser: Drop previous response's pool immediately when parsing continues.

Prevously, it would only do that when the first byte of the next response was received.
This prevents wasting memory when no response is being parsed.


Compare: https://github.com/dovecot/core/compare/201ce62e1dc3...c177bc7c153d


More information about the dovecot-cvs mailing list