From 3c96041c43c7d0d8d97ba94b693b3ccae636565c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 19 Feb 2014 22:53:33 +0900 Subject: [PATCH] nghttpx: Fix typo --- src/shrpx_downstream.cc | 2 +- src/shrpx_downstream.h | 2 +- src/shrpx_http2_downstream_connection.cc | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shrpx_downstream.cc b/src/shrpx_downstream.cc index 13958365..86994077 100644 --- a/src/shrpx_downstream.cc +++ b/src/shrpx_downstream.cc @@ -678,7 +678,7 @@ void Downstream::set_priority(int32_t pri) priority_ = pri; } -int32_t Downstream::get_priorty() const +int32_t Downstream::get_priority() const { return priority_; } diff --git a/src/shrpx_downstream.h b/src/shrpx_downstream.h index cbf4300d..0200c129 100644 --- a/src/shrpx_downstream.h +++ b/src/shrpx_downstream.h @@ -56,7 +56,7 @@ public: void set_stream_id(int32_t stream_id); int32_t get_stream_id() const; void set_priority(int32_t pri); - int32_t get_priorty() const; + int32_t get_priority() const; void pause_read(IOCtrlReason reason); int resume_read(IOCtrlReason reason); void force_resume_read(); diff --git a/src/shrpx_http2_downstream_connection.cc b/src/shrpx_http2_downstream_connection.cc index 23a715ae..6cc42e14 100644 --- a/src/shrpx_http2_downstream_connection.cc +++ b/src/shrpx_http2_downstream_connection.cc @@ -403,10 +403,10 @@ int Http2DownstreamConnection::push_request_headers() nghttp2_data_provider data_prd; data_prd.source.ptr = this; data_prd.read_callback = http2_data_read_callback; - rv = http2session_->submit_request(this, downstream_->get_priorty(), + rv = http2session_->submit_request(this, downstream_->get_priority(), nva.data(), nva.size(), &data_prd); } else { - rv = http2session_->submit_request(this, downstream_->get_priorty(), + rv = http2session_->submit_request(this, downstream_->get_priority(), nva.data(), nva.size(), nullptr); } if(rv != 0) { @@ -532,7 +532,7 @@ bool Http2DownstreamConnection::get_output_buffer_full() int Http2DownstreamConnection::on_priority_change(int32_t pri) { int rv; - if(downstream_->get_priorty() == pri) { + if(downstream_->get_priority() == pri) { return 0; } downstream_->set_priority(pri);