[dovecot/core] 8cf636: lib-http: client: Fixed handling of stalled connec...

GitHub noreply at github.com
Thu Mar 24 17:51:06 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 8cf63630592219f35a7f423988559c6bb59e8536
      https://github.com/dovecot/core/commit/8cf63630592219f35a7f423988559c6bb59e8536
  Author: Stephan Bosch <stephan at rename-it.nl>
  Date:   2016-03-25 (Fri, 25 Mar 2016)

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

  Log Message:
  -----------
  lib-http: client: Fixed handling of stalled connections that emerge when the client ioloop hasn't run for a long time.

Inside the peer's request handler routine, the connections are verified
after the ioloop continues. If they turn out to be broken, they
self-destruct while the handler routine is active, leading to problems.

Solved by referencing the connection and retrying the connection statistics
loop when a connection is lost in the process.


  Commit: 173d53863744e8ed87e8fa4c32dfcf3759e2ceb0
      https://github.com/dovecot/core/commit/173d53863744e8ed87e8fa4c32dfcf3759e2ceb0
  Author: Stephan Bosch <stephan at rename-it.nl>
  Date:   2016-03-25 (Fri, 25 Mar 2016)

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

  Log Message:
  -----------
  lib-http: client: Fixed request timeout handling during pipelining.

The timeout was not managed correctly. If an earlier request finished, it
would not restart the timeout for the next pending request.

Also, filling the pipeline caused the timout to be reset inappropriately,
postponing its expiry.


Compare: https://github.com/dovecot/core/compare/4f9855b29633...173d53863744


More information about the dovecot-cvs mailing list