Serialize the frame and send (or buffer) the data to bufferevent. */
| 284 | /* Serialize the frame and send (or buffer) the data to |
| 285 | bufferevent. */ |
| 286 | static int session_send(http2_session_data *session_data) { |
| 287 | int rv; |
| 288 | rv = nghttp2_session_send(session_data->session); |
| 289 | if (rv != 0) { |
| 290 | LM_WARN("Fatal error: %s", nghttp2_strerror(rv)); |
| 291 | return -1; |
| 292 | } |
| 293 | return 0; |
| 294 | } |
| 295 | |
| 296 | /* Read the data in the bufferevent and feed them into nghttp2 library |
| 297 | function. Invocation of nghttp2_session_mem_recv2() may make |
no outgoing calls
no test coverage detected