| 318 | } |
| 319 | |
| 320 | ProxyTransaction * |
| 321 | Http2ServerSession::new_transaction() |
| 322 | { |
| 323 | this->set_session_active(); |
| 324 | |
| 325 | // Create a new stream/transaction |
| 326 | Http2Error error(Http2ErrorClass::HTTP2_ERROR_CLASS_NONE); |
| 327 | Http2Stream *stream = connection_state.create_initiating_stream(error); |
| 328 | |
| 329 | if (!stream || connection_state.is_peer_concurrent_stream_ub()) { |
| 330 | if (error.cls != Http2ErrorClass::HTTP2_ERROR_CLASS_NONE) { |
| 331 | Error("HTTP/2 stream error code=0x%02x %s", static_cast<int>(error.code), error.msg); |
| 332 | } |
| 333 | |
| 334 | remove_session(); |
| 335 | } |
| 336 | |
| 337 | return stream; |
| 338 | } |
| 339 | |
| 340 | void |
| 341 | Http2ServerSession::add_session() |
no test coverage detected