Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: overridable keep-alive behavior of Agent #13005

Closed

Commits on Jun 6, 2017

  1. http: overridable keep-alive behavior of Agent

    Introduce two overridable `Agent` methods:
    
    * `keepSocketAlive(socket)`
    * `reuseSocket(socket, req)`
    
    These methods can be overridden by particular `Agent` class child to
    make keep-alive behavior customizable.
    
    Motivation: destroy persisted sockets after some configurable timeout.
    It is very non-trivial to do it with available primitives. Such program
    will most likely need to poke with undocumented events and methods of
    `Agent`. With introduced API such behavior is easy to implement.
    indutny committed Jun 6, 2017
    Configuration menu
    Copy the full SHA
    9ea64d7 View commit details
    Browse the repository at this point in the history