Lines Matching defs:code

117   // code. This ensures that the flow of data over the connection
679 void Http2Session::Close(uint32_t code, bool socket_closed) {
697 Debug(this, "terminating session with code %d", code);
698 CHECK_EQ(nghttp2_session_terminate_session(session_.get(), code), 0);
857 custom_recv_error_code_ : "(no custom error code)");
999 "invalid frame received (%u/%u), code: %d",
1008 // If the error is fatal or if error code is ERR_STREAM_CLOSED... emit error
1070 Debug(session, "frame type %d was not sent, code: %d",
1112 uint32_t code,
1120 Debug(session, "stream %d closed with code: %d", id, code);
1127 stream->Close(code);
1133 Local<Value> arg = Integer::NewFromUnsigned(isolate, code);
1385 // simply let user code know that the priority has changed.
1642 // Sending data may call arbitrary JS code, so keep track of
2101 void Http2Stream::Close(int32_t code) {
2104 code_ = code;
2105 Debug(this, "closed with code %d", code);
2277 void Http2Stream::SubmitRstStream(const uint32_t code) {
2279 code_ = code;
2281 auto is_stream_cancel = [](const uint32_t code) {
2282 return code == NGHTTP2_CANCEL;
2285 // If RST_STREAM frame is received with error code NGHTTP2_CANCEL,
2293 if (session_->is_in_scope() && is_stream_cancel(code)) {
2552 // Fetches the string description of a nghttp2 error code and passes that
2686 uint32_t code = args[0]->Uint32Value(context).ToChecked();
2687 session->Close(code, args[1]->IsTrue());
2690 // Submits a new request on the Http2Session and returns either an error code
2722 void Http2Session::Goaway(uint32_t code,
2735 lastStreamID, code, data, len);
2747 uint32_t code = args[0]->Uint32Value(context).ToChecked();
2755 session->Goaway(code, lastStreamID, opaque_data.data(), opaque_data.length());
2784 uint32_t code = args[0]->Uint32Value(context).ToChecked();
2785 Debug(stream, "sending rst_stream with code %d", code);
2786 stream->SubmitRstStream(code);
3225 // Method to fetch the nghttp2 string description of an nghttp2 error code