nghttpx: Fix --backend-http-proxy-uri does not work
This commit is contained in:
parent
03877c3752
commit
cbb5da5285
|
@ -456,11 +456,15 @@ int Http2Session::initiate_connection() {
|
||||||
SSLOG(ERROR, this) << "bufferevent_socket_new() failed";
|
SSLOG(ERROR, this) << "bufferevent_socket_new() failed";
|
||||||
return SHRPX_ERR_NETWORK;
|
return SHRPX_ERR_NETWORK;
|
||||||
}
|
}
|
||||||
rv = bufferevent_socket_connect(
|
if (state_ == DISCONNECTED) {
|
||||||
bev_,
|
rv = bufferevent_socket_connect(
|
||||||
// TODO maybe not thread-safe?
|
bev_,
|
||||||
const_cast<sockaddr *>(&get_config()->downstream_addr.sa),
|
// TODO maybe not thread-safe?
|
||||||
get_config()->downstream_addrlen);
|
const_cast<sockaddr *>(&get_config()->downstream_addr.sa),
|
||||||
|
get_config()->downstream_addrlen);
|
||||||
|
} else {
|
||||||
|
rv = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (state_ == DISCONNECTED) {
|
if (state_ == DISCONNECTED) {
|
||||||
// Without TLS and proxy.
|
// Without TLS and proxy.
|
||||||
|
|
Loading…
Reference in New Issue