Skip to content

Commit 7169181

Browse files
committedJun 11, 2018
src: fix http2 typos
PR-URL: #21194 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]>
1 parent 083139d commit 7169181

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

Diff for: ‎src/node_http2.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ void Http2Stream::EmitStatistics() {
521521
Http2StreamPerformanceEntry* entry =
522522
new Http2StreamPerformanceEntry(env(), id_, statistics_);
523523
env()->SetImmediate([](Environment* env, void* data) {
524-
// This takes ownership, the entr is destroyed at the end of this scope.
524+
// This takes ownership, the entry is destroyed at the end of this scope.
525525
std::unique_ptr<Http2StreamPerformanceEntry> entry {
526526
static_cast<Http2StreamPerformanceEntry*>(data) };
527527
if (!HasHttp2Observer(env))
@@ -998,7 +998,7 @@ int Http2Session::OnDataChunkReceived(nghttp2_session* handle,
998998
// `buf.base == nullptr` is the default Http2StreamListener's way
999999
// of saying that it wants a pointer to the raw original.
10001000
// Since it has access to the original socket buffer from which the data
1001-
// was read in the first place, it can use that to minizime ArrayBuffer
1001+
// was read in the first place, it can use that to minimize ArrayBuffer
10021002
// allocations.
10031003
if (LIKELY(buf.base == nullptr))
10041004
buf.base = reinterpret_cast<char*>(const_cast<uint8_t*>(data));
@@ -1338,7 +1338,7 @@ void Http2Session::OnStreamAfterWrite(WriteWrap* w, int status) {
13381338
}
13391339

13401340
// If the underlying nghttp2_session struct has data pending in its outbound
1341-
// queue, MaybeScheduleWrite will schedule a SendPendingData() call to occcur
1341+
// queue, MaybeScheduleWrite will schedule a SendPendingData() call to occur
13421342
// on the next iteration of the Node.js event loop (using the SetImmediate
13431343
// queue), but only if a write has not already been scheduled.
13441344
void Http2Session::MaybeScheduleWrite() {
@@ -2180,7 +2180,7 @@ void Http2Session::RefreshSettings(const FunctionCallbackInfo<Value>& args) {
21802180

21812181
// A TypedArray instance is shared between C++ and JS land to contain state
21822182
// information of the current Http2Session. This updates the values in the
2183-
// TypedRray so those can be read in JS land.
2183+
// TypedArray so those can be read in JS land.
21842184
void Http2Session::RefreshState(const FunctionCallbackInfo<Value>& args) {
21852185
Environment* env = Environment::GetCurrent(args);
21862186
Http2Session* session;
@@ -2513,7 +2513,7 @@ void Http2Session::AltSvc(int32_t id,
25132513
origin, origin_len, value, value_len), 0);
25142514
}
25152515

2516-
// Submits an AltSvc frame to the sent to the connected peer.
2516+
// Submits an AltSvc frame to be sent to the connected peer.
25172517
void Http2Session::AltSvc(const FunctionCallbackInfo<Value>& args) {
25182518
Environment* env = Environment::GetCurrent(args);
25192519
Http2Session* session;

0 commit comments

Comments
 (0)
Please sign in to comment.