Branch: Tag:

2017-02-22

2017-02-22 14:04:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.HTTP.do_async_proxied_method: Fix timeout handling.

The HTTP timeout was lost during TLS negotiation.

Fixes PIKE-7 (#8007).

467:   {    con->set_callbacks(@orig_cb_info);    +  // Install the timeout handler for the interval until +  // the TLS connection is up. +  con->init_async_timeout();    con->con->set_nonblocking(0,    lambda() { -  +  // Remove the timeout handler; it will be +  // reinstated by do_async_method() below. +  con->remove_async_timeout();    do_async_method(method, url, query_variables,    request_headers, con, data);    }, con->async_failed);