| 1329 | } |
| 1330 | |
| 1331 | int h2_session_push_enabled(h2_session *session) |
| 1332 | { |
| 1333 | /* iff we can and they can and want */ |
| 1334 | return (session->remote.accepting /* remote GOAWAY received */ |
| 1335 | && h2_config_sgeti(session->s, H2_CONF_PUSH) |
| 1336 | && nghttp2_session_get_remote_settings(session->ngh2, |
| 1337 | NGHTTP2_SETTINGS_ENABLE_PUSH)); |
| 1338 | } |
| 1339 | |
| 1340 | static int h2_session_want_send(h2_session *session) |
| 1341 | { |
no test coverage detected