Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1b555ae

Browse filesBrowse files
deokjinkimtargos
authored andcommitted
doc: use number which is bigger than 1024 as port in http2
With 80 port, user should run example with root permission. To avoid such situation, use 8000 or 8443 as port number in example of http2. PR-URL: #46938 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 8723844 commit 1b555ae
Copy full SHA for 1b555ae

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ server.on('stream', (stream, headers) => {
354354
stream.end('<h1>Hello World</h1>');
355355
});
356356

357-
server.listen(80);
357+
server.listen(8000);
358358
```
359359

360360
Even though HTTP/2 streams and network sockets are not in a 1:1 correspondence,
@@ -2532,7 +2532,7 @@ server.on('stream', (stream, headers) => {
25322532
stream.end('<h1>Hello World</h1>');
25332533
});
25342534

2535-
server.listen(80);
2535+
server.listen(8000);
25362536
```
25372537

25382538
### `http2.createSecureServer(options[, onRequestHandler])`
@@ -2673,7 +2673,7 @@ server.on('stream', (stream, headers) => {
26732673
stream.end('<h1>Hello World</h1>');
26742674
});
26752675

2676-
server.listen(80);
2676+
server.listen(8443);
26772677
```
26782678

26792679
### `http2.connect(authority[, options][, listener])`

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.