[dovecot/core] 53393e: lib-http: Detect istream errors correctly.

GitHub noreply at github.com
Mon Oct 30 19:00:12 EET 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 53393ea8bd72644c808f77cf0b79189376769d5d
      https://github.com/dovecot/core/commit/53393ea8bd72644c808f77cf0b79189376769d5d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lib-http/http-header-parser.c
    M src/lib-http/test-http-client-errors.c

  Log Message:
  -----------
  lib-http: Detect istream errors correctly.

i_stream_is_eof() returns TRUE also when streams have an error, so all
errors were logged the same as a regular disconnection.


  Commit: f48fad9712ec943ee3d492298350f97851c8034e
      https://github.com/dovecot/core/commit/f48fad9712ec943ee3d492298350f97851c8034e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lib-http/test-http-client-errors.c

  Log Message:
  -----------
  lib-http: test-http-client-errors - fix typo in error message


  Commit: 2a8454fe986d4a881d3612eebb39101be1d6db94
      https://github.com/dovecot/core/commit/2a8454fe986d4a881d3612eebb39101be1d6db94
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

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

  Log Message:
  -----------
  lib-http: If istream read fails, preserve the istream's full error message


  Commit: 7b29ccd796fc75af86f827192d2f8c0e8f0087bb
      https://github.com/dovecot/core/commit/7b29ccd796fc75af86f827192d2f8c0e8f0087bb
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lib/istream.h

  Log Message:
  -----------
  lib: Update struct istream comments


  Commit: 6a170d6d781094bdc75f027b6456dde160fbde39
      https://github.com/dovecot/core/commit/6a170d6d781094bdc75f027b6456dde160fbde39
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lib/istream.h

  Log Message:
  -----------
  lib: Improve i_stream_is_eof() comment


  Commit: a05250bd599fca0cb8b761c4fd69f91bc1c3667e
      https://github.com/dovecot/core/commit/a05250bd599fca0cb8b761c4fd69f91bc1c3667e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lib-http/test-http-server-errors.c
    M src/lib-smtp/test-smtp-submit.c
    M src/lib/test-istream-chain.c
    M src/lib/test-istream-concat.c
    M src/lib/test-istream-seekable.c

  Log Message:
  -----------
  global: Avoid i_stream_is_eof() where it's not necessary


  Commit: 1bc075e2e4ed422f9590c95c3ae223422b97ce6a
      https://github.com/dovecot/core/commit/1bc075e2e4ed422f9590c95c3ae223422b97ce6a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lib-compression/istream-zlib.c
    M src/lib-fs/fs-sis.c
    M src/lib-http/http-server-request.c
    M src/lib-oauth2/oauth2.c
    M src/lib-program-client/program-client.c
    M src/lib-storage/index/dbox-common/dbox-file.c
    M src/lib-storage/index/dbox-multi/mdbox-purge.c
    M src/lib-storage/index/index-mail-binary.c
    M src/lib/istream.c
    M src/lib/istream.h

  Log Message:
  -----------
  global: Rename i_stream_is_eof() to i_stream_read_eof()

This describes its behavior a bit better.


Compare: https://github.com/dovecot/core/compare/d61f31663f3d...1bc075e2e4ed


More information about the dovecot-cvs mailing list