0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

AppServer: minor debug logging change of E_GENERAL_TIMEOUT

At debug_level 1, only show timeouts if they occur
within a request/reply transaction, not if they
are triggered outside of a transaction by the
expiration of keepalive.

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2018-02-22 22:54:56 -07:00 committed by Lev Stipakov
parent f7e8719852
commit 111cabd518
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -83,6 +83,16 @@ namespace openvpn {
return out_state == S_DEFERRED; return out_state == S_DEFERRED;
} }
bool http_in_started() const
{
return rr_content_bytes > CONTENT_LENGTH_TYPE(0);
}
bool http_out_started() const
{
return out_state != S_PRE;
}
const typename REQUEST_REPLY::State& request_reply() const { const typename REQUEST_REPLY::State& request_reply() const {
return rr_obj; return rr_obj;
} }