[dovecot/core] df1b2c: lib-index: Don't waste 3 bytes of space in struct ...

GitHub noreply at github.com
Wed Nov 2 12:00:10 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: df1b2c3ff9cea4b57a4b9f1688bef54998fda5a4
      https://github.com/dovecot/core/commit/df1b2c3ff9cea4b57a4b9f1688bef54998fda5a4
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-index/mail-index-sync-ext.c
    M src/lib-index/mail-index-sync-keywords.c
    M src/lib-index/mail-index.h

  Log Message:
  -----------
  lib-index: Don't waste 3 bytes of space in struct mail_index_record.

It was always supposed to be used mainly for keywords, but it got broken
many years ago and nobody noticed.


  Commit: 58c278560d3553ed61ef063f30a357ee4efe84df
      https://github.com/dovecot/core/commit/58c278560d3553ed61ef063f30a357ee4efe84df
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: Made test-http-client-errors more reliable.


  Commit: c936df07cf490f090f2f336f40ca386cc953b055
      https://github.com/dovecot/core/commit/c936df07cf490f090f2f336f40ca386cc953b055
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-host.c
    M src/lib-http/http-client-private.h

  Log Message:
  -----------
  lib-http: client: Improved handling of hosts with explicit IP address.


  Commit: e6c7a2711a51c9e8231b239bcea68177250efc97
      https://github.com/dovecot/core/commit/e6c7a2711a51c9e8231b239bcea68177250efc97
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: client: Set conn->connect_request to NULL immediately in http_client_connection_tunnel_response().

Prevents referring to this completed request in other parts of the code.


  Commit: 32ef0bd65f1263626ac138183c0a8ca9a564502e
      https://github.com/dovecot/core/commit/32ef0bd65f1263626ac138183c0a8ca9a564502e
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: client: Created http_client_connection_failure() handler.


  Commit: 2b9d522a3300fa84a1606e2108a159be7bb36154
      https://github.com/dovecot/core/commit/2b9d522a3300fa84a1606e2108a159be7bb36154
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-connection.c
    M src/lib-http/http-client-private.h

  Log Message:
  -----------
  lib-http: client: Added function that checks whether a connection is currently active.


  Commit: 66ea898de7face7fc9c275e01e514fa002446975
      https://github.com/dovecot/core/commit/66ea898de7face7fc9c275e01e514fa002446975
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-peer.c
    M src/lib-http/http-client-private.h

  Log Message:
  -----------
  lib-http: client: Added function that counts how many connections are active within a peer.


  Commit: a8f65a7de876bbb9354e888ff448832f4727262f
      https://github.com/dovecot/core/commit/a8f65a7de876bbb9354e888ff448832f4727262f
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: client: Added debug messages that indicate when a queue is linked/unlinked to a peer.


  Commit: ac325a76379b7d63a3dfb0a1c24fb190396d7cc8
      https://github.com/dovecot/core/commit/ac325a76379b7d63a3dfb0a1c24fb190396d7cc8
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: client: If a peer object is no longer linked to a queue, don't close it until all connections are inactive.

The peer object is canceled, rather than closed. Which means that any newly started and idle connections are closed immediately.
Requests may be pending though.
This is only relevant when hosts/queues are removed at some point.
This is a preparational change for having a maximum lifetime on hosts/queues, in which case this becomes a possibility.


  Commit: d675ed17db85f710fca504979054238628416c6c
      https://github.com/dovecot/core/commit/d675ed17db85f710fca504979054238628416c6c
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: client: Improved logging of connection loss handling in peer.


  Commit: c1423bdba971228a283653222ed0367f84ab6402
      https://github.com/dovecot/core/commit/c1423bdba971228a283653222ed0367f84ab6402
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-peer.c
    M src/lib-http/http-client-private.h
    M src/lib-http/http-client-queue.c

  Log Message:
  -----------
  lib-http: client: Unlink all queues from peer when it is disconnected.

Before, queues were only destroyed when the whole client was destroyed.
This change and subsequent changes prepare for being able to destroy a queue when it becomes unused.


  Commit: 1443a6b1be41f132ea8269d0826083f7bbf4a7d6
      https://github.com/dovecot/core/commit/1443a6b1be41f132ea8269d0826083f7bbf4a7d6
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: client: Created http_client_peer_drop() function that closes a peer object gracefully.

It checks whether any connections are still present.
It checks whether a backoff timer is still active.
This change and subsequent changes prepare for being able to destroy a queue when it becomes unused.
All peers linked to such a queue are unlinked and dropped when inactive and unlinked.


  Commit: 57d86b6fd46cb6d37bfc28f67ae4be80296ad35a
      https://github.com/dovecot/core/commit/57d86b6fd46cb6d37bfc28f67ae4be80296ad35a
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-private.h
    M src/lib-http/http-client-queue.c

  Log Message:
  -----------
  lib-http: client: Link peers to queue earlier: during connection attempts.

This makes sure that queues keep track of which peers are doing stuff on its behalf.
This is important to be able to manage the active peers when a new host name lookup was performed; if a peer is no longer listed in the returned IPs it should be dropped.


  Commit: 6a0e62561f965c86f98444c8ad48fad7c0d67bcb
      https://github.com/dovecot/core/commit/6a0e62561f965c86f98444c8ad48fad7c0d67bcb
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: client: Create queue->pending_peers array from the beginning.

This simplifies the code, since the pending peers array is always used.


  Commit: c62f15cc134cc9701c391eec8e9ef92105aa6d33
      https://github.com/dovecot/core/commit/c62f15cc134cc9701c391eec8e9ef92105aa6d33
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-private.h
    M src/lib-http/http-client-queue.c

  Log Message:
  -----------
  lib-http: client: Added http_client_queue_requests_active().

It counts how many active requests a queue has.


  Commit: 1e63e30812158e6446d81cdbb2f45954794d4f8a
      https://github.com/dovecot/core/commit/1e63e30812158e6446d81cdbb2f45954794d4f8a
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-host.c
    M src/lib-http/http-client-private.h
    M src/lib-http/http-client-queue.c
    M src/lib-http/http-client.c
    M src/lib-http/http-client.h

  Log Message:
  -----------
  lib-http: client: Implemented host name lookup TTL.

Host name lookups will now be performed again when the results have expired.
Without access to TTL information from DNS lookups, all lookups will use the same default TTL for now.


  Commit: c4b2dba355010a38f17b3cd84feb01ecb8b05a55
      https://github.com/dovecot/core/commit/c4b2dba355010a38f17b3cd84feb01ecb8b05a55
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lib-http/http-client-host.c
    M src/lib-http/http-client-private.h
    M src/lib-http/http-client-queue.c

  Log Message:
  -----------
  lib-http: client: Destroy host and associated queue objects after no more requests remain and an idle timeout expires.


  Commit: 3395f5ad01bdd0904682157086e3741df511c908
      https://github.com/dovecot/core/commit/3395f5ad01bdd0904682157086e3741df511c908
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

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

  Log Message:
  -----------
  lib-http: Added DNS-related tests to test-http-client-errors.


Compare: https://github.com/dovecot/core/compare/e545fb28bcd7...3395f5ad01bd


More information about the dovecot-cvs mailing list