| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 44c5718 commit 9baf580
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1213,7 +1213,7 @@ int Http2Session::OnFrameNotSent(nghttp2_session* handle, | |||
| 1213 | 1213 | // closed but the Http2Session will still be up causing a memory leak. | |
| 1214 | 1214 | // Therefore, if the GOAWAY frame couldn't be send due to | |
| 1215 | 1215 | // ERR_SESSION_CLOSING we should force close from our side. | |
| 1216 | - if (frame->hd.type != 0x03) { | ||
| 1216 | + if (frame->hd.type != NGHTTP2_GOAWAY) { | ||
| 1217 | 1217 | return 0; | |
| 1218 | 1218 | } | |
| 1219 | 1219 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,9 +29,9 @@ async function requestAndClose(server) { | |||
| 29 | 29 | // Send a valid HEADERS frame | |
| 30 | 30 | const headersFrame = Buffer.concat([ | |
| 31 | 31 | Buffer.from([ | |
| 32 | - 0x00, 0x00, 0x0c, // Length: 12 bytes | ||
| 32 | + 0x00, 0x00, 0x0e, // Length: 14 bytes | ||
| 33 | 33 | 0x01, // Type: HEADERS | |
| 34 | - 0x05, // Flags: END_HEADERS + END_STREAM | ||
| 34 | + 0x04, // Flags: END_HEADERS | ||
| 35 | 35 | (streamId >> 24) & 0xFF, // Stream ID: high byte | |
| 36 | 36 | (streamId >> 16) & 0xFF, | |
| 37 | 37 | (streamId >> 8) & 0xFF, | |
@@ -41,7 +41,7 @@ async function requestAndClose(server) { | |||
| 41 | 41 | 0x82, // Indexed Header Field Representation (Predefined ":method: GET") | |
| 42 | 42 | 0x84, // Indexed Header Field Representation (Predefined ":path: /") | |
| 43 | 43 | 0x86, // Indexed Header Field Representation (Predefined ":scheme: http") | |
| 44 | - 0x44, 0x0a, // Custom ":authority: localhost" | ||
| 44 | + 0x41, 0x09, // ":authority: localhost" Length: 9 bytes | ||
| 45 | 45 | 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, | |
| 46 | 46 | ]), | |
| 47 | 47 | ]); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments