[dovecot/core] 86536a: lib: Add i_stream_nonseekable_try_seek()

GitHub noreply at github.com
Wed Jun 6 16:30:15 EEST 2018


  Branch: refs/heads/master-2.3
  Home:   https://github.com/dovecot/core
  Commit: 86536a2f7fe322da18c531a72ae0b4b3953d4a64
      https://github.com/dovecot/core/commit/86536a2f7fe322da18c531a72ae0b4b3953d4a64
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-06 (Wed, 06 Jun 2018)

  Changed paths:
    M src/lib/istream-private.h
    M src/lib/istream.c

  Log Message:
  -----------
  lib: Add i_stream_nonseekable_try_seek()

This can be used by istreams to more easily implement seeking backwards when
it has to be done by first seeking back to offset 0 and reading from there.


  Commit: 3e626387cba2a288350f782adeacd323e55add38
      https://github.com/dovecot/core/commit/3e626387cba2a288350f782adeacd323e55add38
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-06 (Wed, 06 Jun 2018)

  Changed paths:
    M src/lib-dcrypt/istream-decrypt.c
    M src/lib-dcrypt/test-stream.c

  Log Message:
  -----------
  lib-dcrypt: istream-decrypt - Add support for seeking


  Commit: bd7afb3d1136b98ea93ee20b72b503571c4102f8
      https://github.com/dovecot/core/commit/bd7afb3d1136b98ea93ee20b72b503571c4102f8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-06 (Wed, 06 Jun 2018)

  Changed paths:
    M src/lib/istream-private.h
    M src/lib/istream.c

  Log Message:
  -----------
  lib: i_stream_default_stat() - Get seekable streams' sizes by reading the stream

After the stream size is found, seek back to original offset.


  Commit: 7866c3ecfc7e813c46445813ac0b6ab35b3d8a8e
      https://github.com/dovecot/core/commit/7866c3ecfc7e813c46445813ac0b6ab35b3d8a8e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-06 (Wed, 06 Jun 2018)

  Changed paths:
    M src/lib-compression/ostream-zlib.c
    M src/lib-compression/test-compression.c

  Log Message:
  -----------
  lib-compression: deflate ostream - Use Z_FINISH on final flush

Nowadays we have o_stream_finish(), so we can differentiate between
intermediate flush and final flush. Using this allows istream-zlib to
cleanly see that the stream ends.


  Commit: 70aaf84c388af38a659ffe8cf41f74b766d57d82
      https://github.com/dovecot/core/commit/70aaf84c388af38a659ffe8cf41f74b766d57d82
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-06 (Wed, 06 Jun 2018)

  Changed paths:
    M src/lib-compression/istream-bzlib.c
    M src/lib-compression/istream-lz4.c
    M src/lib-compression/istream-lzma.c
    M src/lib-compression/istream-zlib.c
    M src/lib-compression/test-compression.c

  Log Message:
  -----------
  lib-compression: Use i_stream_default_stat() instead of reimplementing it


  Commit: 6472b5cc0677ea47508d0fde230467da14e6bf09
      https://github.com/dovecot/core/commit/6472b5cc0677ea47508d0fde230467da14e6bf09
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-06 (Wed, 06 Jun 2018)

  Changed paths:
    M src/lib-compression/istream-bzlib.c
    M src/lib-compression/istream-lz4.c
    M src/lib-compression/istream-lzma.c
    M src/lib-compression/istream-zlib.c
    M src/lib-compression/test-compression.c

  Log Message:
  -----------
  lib-compression: Use i_stream_nonseekable_try_seek() instead of reimplementing it


Compare: https://github.com/dovecot/core/compare/8e9693f1777c...6472b5cc0677
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list