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 fe55480

Browse filesBrowse files
committed
fixup! doc: do not mention TCP in the allowHalfOpen option description
1 parent 825e97d commit fe55480
Copy full SHA for fe55480

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+11
-9
lines changed
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+7-5Lines changed: 7 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,10 @@ changes:
551551
* `options` {Object} Available options are:
552552
* `fd` {number} If specified, wrap around an existing socket with
553553
the given file descriptor, otherwise a new socket will be created.
554-
* `allowHalfOpen` {boolean} Indicates whether to automatically end the
555-
writable side when the readable side ends. See [`net.createServer()`][] and
556-
the [`'end'`][] event for details. **Default:** `false`.
554+
* `allowHalfOpen` {boolean} If set to `false`, then the socket will
555+
automatically end the writable side when the readable side ends. See
556+
[`net.createServer()`][] and the [`'end'`][] event for details. **Default:**
557+
`false`.
557558
* `readable` {boolean} Allow reads on the socket when an `fd` is passed,
558559
otherwise ignored. **Default:** `false`.
559560
* `writable` {boolean} Allow writes on the socket when an `fd` is passed,
@@ -1295,8 +1296,9 @@ added: v0.5.0
12951296
-->
12961297

12971298
* `options` {Object}
1298-
* `allowHalfOpen` {boolean} Indicates whether to automatically end the
1299-
writable side when the readable side ends. **Default:** `false`.
1299+
* `allowHalfOpen` {boolean} If set to `false`, then the socket will
1300+
automatically end the writable side when the readable side ends.
1301+
**Default:** `false`.
13001302
* `pauseOnConnect` {boolean} Indicates whether the socket should be
13011303
paused on incoming connections. **Default:** `false`.
13021304
* `connectionListener` {Function} Automatically set as a listener for the
Collapse file

‎doc/api/tls.md‎

Copy file name to clipboardExpand all lines: doc/api/tls.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1472,10 +1472,10 @@ changes:
14721472
Connection/disconnection/destruction of `socket` is the user's
14731473
responsibility; calling `tls.connect()` will not cause `net.connect()` to be
14741474
called.
1475-
* `allowHalfOpen` {boolean} If the `socket` option is missing, indicates
1476-
whether to automatically end the writable side when the readable side ends,
1477-
otherwise the option is ignored. See the `allowHalfOpen` option of
1478-
[`net.Socket`][] for details. **Default:** `false`.
1475+
* `allowHalfOpen` {boolean} If set to `false`, then the socket will
1476+
automatically end the writable side when the readable side ends. If the
1477+
`socket` option is set, this option has no effect. See the `allowHalfOpen`
1478+
option of [`net.Socket`][] for details. **Default:** `false`.
14791479
* `rejectUnauthorized` {boolean} If not `false`, the server certificate is
14801480
verified against the list of supplied CAs. An `'error'` event is emitted if
14811481
verification fails; `err.code` contains the OpenSSL error code. **Default:**

0 commit comments

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