Connection request auth + keep-alive

Zaid Abdulla zaid at genieacs.com
Thu Mar 2 16:07:31 EST 2017


On Thu, 2017-03-02 at 18:53 +0100, Pavel Mracek wrote:
> This patch solve this issue for me:
> diff --git a/lib/api-functions.coffee b/lib/api-functions.coffee
> index 6627469..c9d9d40 100644
> --- a/lib/api-functions.coffee
> +++ b/lib/api-functions.coffee
> @@ -83,6 +83,7 @@ httpConReq = (url, username, password, timeout,
> callback) ->
>    options = URL.parse(url)
>    # Ensure socket is reused in case of digest authentication
>    agent = new http.Agent({maxSockets : 1})
> +  options.agent=agent;
>  
>    statusToError = (statusCode) ->
>      switch statusCode

Thanks! I just pushed a fix.

-- 
Zaid Abdulla <zaid at genieacs.com>


More information about the Users mailing list