| 153 | } |
| 154 | |
| 155 | static void ping_reuse_session(h2_proxy_session *session) |
| 156 | { |
| 157 | if (H2_PING_ST_NONE == session->ping_state) { |
| 158 | apr_interval_time_t age = apr_time_now() - session->last_frame_received; |
| 159 | if (age > apr_time_from_sec(1)) { |
| 160 | enter_ping_state(session, H2_PING_ST_AWAIT_PING); |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | static void ping_ev_frame_received(h2_proxy_session *session, const nghttp2_frame *frame) |
| 166 | { |
no test coverage detected